INFO: No output directory specified (--dir) INFO: Using directory: "Bispectral_20251212_043153" INFO: Regenerating c-file: Bispectral.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./Bispectral.c Bispectral.instr Warning: DECLARE block contains 1 assignments (= sign). Move them into an INITIALIZE section. May fail at compile. CFLAGS= @NCRYSTALFLAGS@ -DFUNNEL ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: Component master is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component master -> GPU kernel from component stop ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./Bispectral.out --> launching cmd: ncrystal-config --show buildflags DEBUG: CMD: nvc -o ./Bispectral.out ./Bispectral.c -lm -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -DUSE_MPI -lmpi -Wl,-rpath,/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/lib -L,/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/lib -I/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/include -fast -Minfo=accel -acc=gpu -gpu=mem:managed -DOPENACC -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/libNCrystal.so -I/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -DFUNNEL "./Bispectral.c", line 88: warning: Routine "mcgenstate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_particle mcgenstate(void); ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./Bispectral.c", line 90: warning: Routine "mcsetstate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_particle mcsetstate(double x, double y, double z, double vx, double vy, double vz, ^ "./Bispectral.c", line 93: warning: Routine "mcgetstate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_particle mcgetstate(_class_particle mcneutron, double *x, double *y, double *z, ^ "./Bispectral.c", line 109: warning: Routine "particle_getvar" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double particle_getvar(_class_particle *p, char *name, int *suc); ^ "./Bispectral.c", line 113: warning: Routine "str_comp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int str_comp(char *str1, char *str2); ^ "./Bispectral.c", line 141: warning: Routine "particle_getvar_void" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void* particle_getvar_void(_class_particle *p, char *name, int *suc); ^ "./Bispectral.c", line 113: warning: Routine "str_comp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int str_comp(char *str1, char *str2); ^ "./Bispectral.c", line 170: warning: Routine "particle_setvar_void" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int particle_setvar_void(_class_particle *, char *, void*); ^ "./Bispectral.c", line 192: warning: Routine "particle_setvar_void_array" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int particle_setvar_void_array(_class_particle *, char *, void*, int); ^ "./Bispectral.c", line 203: warning: Routine "particle_restore" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void particle_restore(_class_particle *p, _class_particle *p0); ^ "./Bispectral.c", line 214: warning: Routine "particle_getuservar_byid" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double particle_getuservar_byid(_class_particle *p, int id, int *suc){ ^ "./Bispectral.c", line 224: warning: Routine "particle_uservar_init" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void particle_uservar_init(_class_particle *p){ ^ "./Bispectral.c", line 291: warning: Routine "noprintf" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int noprintf(); ^ "./Bispectral.c", line 293: warning: Routine "str_len" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] size_t str_len(const char *s); ^ "./Bispectral.c", line 644: warning: Routine "mcget_ncount" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] unsigned long long int mcget_ncount(void); /* wrapper to set mcncount */ ^ "./Bispectral.c", line 865: warning: Routine "_randnorm2" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randnorm2(randstate_t* state); ^ "./Bispectral.c", line 882: warning: Routine "kiss_srandom" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] uint64_t *kiss_srandom(uint64_t state[7], uint64_t seed); ^ "./Bispectral.c", line 884: warning: Routine "kiss_random" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] uint64_t kiss_random(uint64_t state[7]); ^ "./Bispectral.c", line 892: warning: Routine "_rand01" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _rand01(randstate_t* state); ^ "./Bispectral.c", line 894: warning: Routine "_randpm1" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randpm1(randstate_t* state); ^ "./Bispectral.c", line 896: warning: Routine "_rand0max" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _rand0max(double max, randstate_t* state); ^ "./Bispectral.c", line 898: warning: Routine "_randminmax" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randminmax(double min, double max, randstate_t* state); ^ "./Bispectral.c", line 900: warning: Routine "_randtriangle" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randtriangle(randstate_t* state); ^ "./Bispectral.c", line 996: warning: Routine "coords_set" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_set(MCNUM x, MCNUM y, MCNUM z); ^ "./Bispectral.c", line 998: warning: Routine "coords_get" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_get(Coords a, MCNUM *x, MCNUM *y, MCNUM *z); ^ "./Bispectral.c", line 1000: warning: Routine "coords_add" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_add(Coords a, Coords b); ^ "./Bispectral.c", line 1002: warning: Routine "coords_sub" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_sub(Coords a, Coords b); ^ "./Bispectral.c", line 1004: warning: Routine "coords_neg" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_neg(Coords a); ^ "./Bispectral.c", line 1006: warning: Routine "coords_scale" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_scale(Coords b, double scale); ^ "./Bispectral.c", line 1008: warning: Routine "coords_sp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double coords_sp(Coords a, Coords b); ^ "./Bispectral.c", line 1010: warning: Routine "coords_xp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_xp(Coords b, Coords c); ^ "./Bispectral.c", line 1012: warning: Routine "coords_len" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double coords_len(Coords a); ^ "./Bispectral.c", line 4627: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ "./Bispectral.c", line 5082: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] randstate_t randstate[7]; ^ "./Bispectral.c", line 5001: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./Bispectral.c", line 6328: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Bispectral.c", line 7102: warning: incompatible redefinition of macro "exit" (declared at line 623) [bad_macro_redef] #define exit(...) noprintf() ^ "./Bispectral.c", line 7386: warning: statement is unreachable [code_is_unreachable] return 1; ^ "./Bispectral.c", line 9391: warning: variable "output" was declared but never referenced [declared_but_not_referenced] struct tagging_tree_node_struct *output; ^ "./Bispectral.c", line 9947: warning: variable "permanent_list_length" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,permanent_list_length = 0; ^ "./Bispectral.c", line 9974: warning: variable "geometry_output" was set but never used [set_but_not_used] int geometry_output; ^ "./Bispectral.c", line 10499: warning: variable "x_vector" was declared but never referenced [declared_but_not_referenced] Coords x_vector = geometry->geometry_parameters.p_box_storage->x_vector; ^ "./Bispectral.c", line 10500: warning: variable "y_vector" was declared but never referenced [declared_but_not_referenced] Coords y_vector = geometry->geometry_parameters.p_box_storage->y_vector; ^ "./Bispectral.c", line 10501: warning: variable "z_vector" was declared but never referenced [declared_but_not_referenced] Coords z_vector = geometry->geometry_parameters.p_box_storage->z_vector; ^ "./Bispectral.c", line 10723: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Bispectral.c", line 10785: warning: variable "rotated_nx" was declared but never referenced [declared_but_not_referenced] double rotated_nx, rotated_ny, rotated_nz; ^ "./Bispectral.c", line 10785: warning: variable "rotated_ny" was declared but never referenced [declared_but_not_referenced] double rotated_nx, rotated_ny, rotated_nz; ^ "./Bispectral.c", line 10785: warning: variable "rotated_nz" was declared but never referenced [declared_but_not_referenced] double rotated_nx, rotated_ny, rotated_nz; ^ "./Bispectral.c", line 11006: warning: variable "output" was set but never used [set_but_not_used] int output = 0; ^ "./Bispectral.c", line 11311: warning: variable "radius_top" was declared but never referenced [declared_but_not_referenced] double radius_top = geometry->geometry_parameters.p_cone_storage->cone_radius_top; ^ "./Bispectral.c", line 11312: warning: variable "radius_bottom" was declared but never referenced [declared_but_not_referenced] double radius_bottom = geometry->geometry_parameters.p_cone_storage->cone_radius_bottom; ^ "./Bispectral.c", line 11557: warning: statement is unreachable [code_is_unreachable] return 0; ^ "./Bispectral.c", line 11348: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Bispectral.c", line 11350: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./Bispectral.c", line 11351: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./Bispectral.c", line 11352: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./Bispectral.c", line 11376: warning: variable "verbal" was declared but never referenced [declared_but_not_referenced] int verbal = 0; ^ "./Bispectral.c", line 11385: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Bispectral.c", line 11385: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Bispectral.c", line 11387: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Bispectral.c", line 11429: warning: variable "C1" was declared but never referenced [declared_but_not_referenced] int C1 = counter; ^ "./Bispectral.c", line 11598: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./Bispectral.c", line 11628: warning: variable "output" was set but never used [set_but_not_used] int output = 0; ^ "./Bispectral.c", line 11647: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Bispectral.c", line 11647: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Bispectral.c", line 11648: warning: variable "UNION_EPSILON" was declared but never referenced [declared_but_not_referenced] double UNION_EPSILON = 0.0000001; ^ "./Bispectral.c", line 11649: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Bispectral.c", line 11886: warning: variable "rotated_coordinates" was declared but never referenced [declared_but_not_referenced] Coords rotated_coordinates; ^ "./Bispectral.c", line 12052: warning: variable "y" was set but never used [set_but_not_used] double x, y, z, dt; ^ "./Bispectral.c", line 12107: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Bispectral.c", line 12184: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Bispectral.c", line 12396: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Bispectral.c", line 12494: warning: variable "solutions" was declared but never referenced [declared_but_not_referenced] int iterate,number_of_solutions,solutions,number_of_positions = 30; ^ "./Bispectral.c", line 12685: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Bispectral.c", line 12883: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Bispectral.c", line 12884: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Bispectral.c", line 13469: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Bispectral.c", line 13470: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Bispectral.c", line 13729: warning: variable "is_rectangle" was declared but never referenced [declared_but_not_referenced] int is_rectangle = geometry_box->geometry_parameters.p_box_storage->is_rectangle; ^ "./Bispectral.c", line 13734: warning: variable "y_height2" was declared but never referenced [declared_but_not_referenced] double y_height2 = geometry_box->geometry_parameters.p_box_storage->y_height2; ^ "./Bispectral.c", line 13735: warning: variable "x_vector" was declared but never referenced [declared_but_not_referenced] Coords x_vector = geometry_box->geometry_parameters.p_box_storage->x_vector; ^ "./Bispectral.c", line 13736: warning: variable "y_vector" was declared but never referenced [declared_but_not_referenced] Coords y_vector = geometry_box->geometry_parameters.p_box_storage->y_vector; ^ "./Bispectral.c", line 13743: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Bispectral.c", line 13744: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Bispectral.c", line 13867: warning: variable "square_offset" was declared but never referenced [declared_but_not_referenced] double square_offset; ^ "./Bispectral.c", line 14161: warning: variable "debug_dist" was set but never used [set_but_not_used] double debug_dist; ^ "./Bispectral.c", line 14227: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Bispectral.c", line 14414: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Bispectral.c", line 14417: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Bispectral.c", line 14574: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Bispectral.c", line 14577: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Bispectral.c", line 15575: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int mask_index,mask_mode,found_index,logic_ALL; ^ "./Bispectral.c", line 15478: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,mask_volume_number,mask_index; ^ "./Bispectral.c", line 15797: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,parent,mask_index,masked_volume_index,ANY_logic,true_parent_volume_number; ^ "./Bispectral.c", line 16007: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,iterate2,found_index,I_index,I_volume; ^ "./Bispectral.c", line 16168: warning: variable "string_output" was declared but never referenced [declared_but_not_referenced] char string_output[124]; ^ "./Bispectral.c", line 16572: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,mask_index; ^ "./Bispectral.c", line 17440: warning: Routine "Table_Index" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Index(t_Table Table, long i, long j); /* get indexed value */ ^ "./Bispectral.c", line 17442: warning: Routine "Table_Value" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Value(t_Table Table, double X, long j); /* search X in 1st column and return interpolated value in j-column */ ^ "./Bispectral.c", line 17449: warning: Routine "Table_Value2d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Value2d(t_Table Table, double X, double Y); /* same as Table_Index with non-integer indices and 2d interpolation */ ^ "./Bispectral.c", line 17469: warning: Routine "Table_Interp1d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Interp1d(double x, double x1, double y1, double x2, double y2); ^ "./Bispectral.c", line 17471: warning: Routine "Table_Interp1d_nearest" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Interp1d_nearest(double x, double x1, double y1, double x2, double y2); ^ "./Bispectral.c", line 17473: warning: Routine "Table_Interp2d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Interp2d(double x, double y, double x1, double y1, double x2, double y2, ^ "./Bispectral.c", line 20406: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Bispectral.c", line 20394: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Bispectral.c", line 20451: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Bispectral.c", line 20541: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Bispectral.c", line 20590: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Bispectral.c", line 20643: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Bispectral.c", line 20639: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Bispectral.c", line 20700: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Bispectral.c", line 20685: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Bispectral.c", line 20765: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Bispectral.c", line 20746: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Bispectral.c", line 20830: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Bispectral.c", line 20815: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./Bispectral.c", line 20895: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Bispectral.c", line 20876: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./Bispectral.c", line 20960: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Bispectral.c", line 20945: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./Bispectral.c", line 21024: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Bispectral.c", line 21009: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./Bispectral.c", line 21073: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./Bispectral.c", line 21190: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./Bispectral.c", line 21316: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./Bispectral.c", line 21436: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./Bispectral.c", line 21556: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./Bispectral.c", line 21676: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./Bispectral.c", line 21796: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./Bispectral.c", line 21916: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./Bispectral.c", line 22036: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 20; ^ "./Bispectral.c", line 22156: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 21; ^ "./Bispectral.c", line 22276: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 22; ^ "./Bispectral.c", line 22396: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 23; ^ "./Bispectral.c", line 22516: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 24; ^ "./Bispectral.c", line 22636: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 25; ^ "./Bispectral.c", line 22756: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 26; ^ "./Bispectral.c", line 22896: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Bispectral.c", line 22876: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 27; ^ "./Bispectral.c", line 22953: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Bispectral.c", line 22950: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 28; ^ "./Bispectral.c", line 22995: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 29; ^ "./Bispectral.c", line 23080: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 30; ^ "./Bispectral.c", line 23155: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 31; ^ "./Bispectral.c", line 23347: warning: variable "sign_bl_angle" was set but never used [set_but_not_used] int sign_bl_angle; ^ "./Bispectral.c", line 23356: warning: variable "sin_beamport_angle" was set but never used [set_but_not_used] double cos_beamport_angle, sin_beamport_angle; ^ "./Bispectral.c", line 25898: warning: Routine "class_Progress_bar_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void class_Progress_bar_trace(_class_Progress_bar *_comp ^ "./Bispectral.c", line 25988: warning: Routine "class_ESS_butterfly_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void class_ESS_butterfly_trace(_class_ESS_butterfly *_comp ^ "./Bispectral.c", line 26071: warning: variable "z0" was set but never used [set_but_not_used] double x0,z0; ^ "./Bispectral.c", line 26072: warning: variable "surf_sign" was set but never used [set_but_not_used] int surf_sign; ^ "./Bispectral.c", line 26275: warning: Routine "class_NCrystal_process_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void class_NCrystal_process_trace(_class_NCrystal_process *_comp ^ "./Bispectral.c", line 26319: warning: Routine "class_Mirror_surface_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void class_Mirror_surface_trace(_class_Mirror_surface *_comp ^ "./Bispectral.c", line 27033: warning: variable "physics_output" was set but never used [set_but_not_used] int physics_output; ^ "./Bispectral.c", line 27893: warning: variable "q_qc_quadratic_diff" was declared but never referenced [declared_but_not_referenced] double q_qc_quadratic_diff; ^ "./Bispectral.c", line 27926: warning: variable "theta2" was set but never used [set_but_not_used] double theta1, theta2; ^ "./Bispectral.c", line 26536: warning: variable "start_weight" was set but never used [set_but_not_used] double start_weight; ^ "./Bispectral.c", line 28444: warning: Routine "class_DivLambda_monitor_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void class_DivLambda_monitor_trace(_class_DivLambda_monitor *_comp ^ "./Bispectral.c", line 28472: warning: variable "v" was declared but never referenced [declared_but_not_referenced] double v, vn; ^ "./Bispectral.c", line 28542: warning: Routine "class_L_monitor_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void class_L_monitor_trace(_class_L_monitor *_comp ^ "./Bispectral.c", line 28615: warning: Routine "class_PSD_monitor_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void class_PSD_monitor_trace(_class_PSD_monitor *_comp ^ "./Bispectral.c", line 31663: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Bispectral.c", line 31664: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Bispectral.c", line 1504: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Bispectral.c", line 2973: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 102, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 116, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 148, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 172, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 194, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 205, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 214, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 224, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1552, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1556, Generating acc routine seq Generating NVIDIA GPU code str_len: 1565, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4245, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4679, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4690, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4699, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4711, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4723, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4733, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4743, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4751, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4761, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4783, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4790, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4836, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4871, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4882, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4899, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4910, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4926, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4955, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4966, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4970, Generating acc routine seq Generating NVIDIA GPU code sort_absorb_last: 5005, Generating present(particles[:buffer_len],pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 5012, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5021, #pragma acc loop seq 5005, Generating implicit copy(lens[:]) [if not already present] 5012, Generating implicit firstprivate(ll,l) 5023, Accelerator restriction: induction variable live-out from loop: i 5024, Accelerator restriction: induction variable live-out from loop: i 5025, Accelerator restriction: induction variable live-out from loop: i 5026, Accelerator restriction: induction variable live-out from loop: i 5028, Accelerator restriction: induction variable live-out from loop: j 5029, Accelerator restriction: induction variable live-out from loop: j 5030, Accelerator restriction: induction variable live-out from loop: j 5031, Accelerator restriction: induction variable live-out from loop: j 5053, Generating present(pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 5057, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5060, #pragma acc loop seq 5053, Generating implicit copyin(lens[:]) [if not already present] Generating implicit copy(particles[:]) [if not already present] Generating implicit copyin(los[:]) [if not already present] 5060, Generating implicit firstprivate(l) 5077, Generating present(particles[:buffer_len]) Generating implicit firstprivate(accumlen,tidx,mult) Generating NVIDIA GPU code 5081, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5088, #pragma acc loop seq 5077, Local memory used for targetbuffer,sourcebuffer mccoordschange: 5147, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5178, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5195, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5294, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5378, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5444, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5521, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5793, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5805, Generating acc routine seq Generating NVIDIA GPU code _hash: 5837, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5878, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5889, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5894, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5902, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5910, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5917, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6597, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6637, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6697, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6714, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6829, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6884, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_spectrum: 7106, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_spectrum: 7133, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_y0: 7147, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_thermal_y0: 7159, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_x0: 7166, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal: 7191, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold: 7218, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_y0: 7243, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_y0: 7254, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_x0: 7265, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_x0: 7310, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Y: 7361, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Y: 7368, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Theta120: 7375, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Theta120: 7382, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_timedist: 7392, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_timedist: 7402, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 18250, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 18318, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 18397, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 18865, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 18881, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 18899, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 19009, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 19068, Generating acc routine seq Generating NVIDIA GPU code init: 25856, Generating update device(_Cu_var,_Si_var,_Source_var,_Vacuum_box_var,_focus_center_var,_Cu_box_var,_Cu_total_var,_Origin_var,_Si_total_var,_instrument_var,_m2_mirror_var,_Start_of_bi_var,_monitor_PSD_var,_si_blade_12_var,_si_blade_1_var,_si_blade_2_var,_si_blade_3_var,_si_blade_4_var,_si_blade_5_var,_si_blade_6_var,_si_blade_7_var,_si_blade_8_var,_si_blade_0_var,_si_blade_10_var,_si_blade_11_var,_m4_mirror_var,_stop_var,_si_blade_9_var,_master_var,_monitor_Div_L_var,_monitor_L_var,_init_var) class_Progress_bar_trace: 25899, Generating acc routine seq Generating NVIDIA GPU code class_ESS_butterfly_trace: 25989, Generating acc routine seq Generating NVIDIA GPU code class_NCrystal_process_trace: 26276, Generating acc routine seq Generating NVIDIA GPU code class_Mirror_surface_trace: 26320, Generating acc routine seq Generating NVIDIA GPU code class_DivLambda_monitor_trace: 28445, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 28543, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 28616, Generating acc routine seq Generating NVIDIA GPU code raytrace_all_funnel: 29147, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 29151, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 29151, Generating implicit firstprivate(mpi_node_rank,_particle,ncount,seed) 29160, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 29165, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 29160, Local memory used for .inl_.inl_c_1977_32406,.inl_.inl_.inl_b_1951_1983_32411,.inl_.inl_.inl_.X3116_1950_1982_32410,.inl_.inl_b_1973_32405,.inl_.inl_c_1966_32395,.inl_.inl_.inl_b_1951_1972_32400,.inl_.inl_.inl_.X3116_1950_1971_32399,.inl_.inl_b_1962_32394,.inl_.inl_.X3100_1961_32389,.inl_.inl_c_1958_32388,.inl_c_32421,.inl_.inl_b_1957_32386,.inl_.inl_.X3116_1956_32385,.inl_b_32378,.inl_.X3099_32377,.inl_.X3100_32372,.inl_c_32380,.inl_.X3098_32368,.inl_a_32364,.inl_.inl_c_1977_32354,.inl_.inl_.inl_b_1951_1983_32359,.inl_.inl_.inl_.X3116_1950_1982_32358,.inl_.inl_b_1973_32353,.inl_.inl_c_1966_32343,.inl_.inl_.inl_b_1951_1972_32348,.inl_.inl_.inl_.X3116_1950_1971_32347,.inl_.inl_b_1962_32342,.inl_.inl_.X3100_1961_32337,.inl_.inl_c_1958_32336,.inl_c_32369,.inl_.inl_b_1957_32334,.inl_.inl_.X3116_1956_32333,.inl_b_32326,.inl_.X3099_32325,.inl_.X3100_32320,.inl_c_32328,.inl_.X3098_32316,.inl_a_32312,.inl_.inl_c_1977_32302,.inl_.inl_.inl_b_1951_1983_32307,.inl_.inl_.inl_.X3116_1950_1982_32306,.inl_.inl_b_1973_32301,.inl_.inl_c_1966_32291,.inl_.inl_.inl_b_1951_1972_32296,.inl_.inl_.inl_.X3116_1950_1971_32295,.inl_.inl_b_1962_32290,.inl_.inl_.X3100_1961_32285,.inl_.inl_c_1958_32284,.inl_c_32317,.inl_.inl_b_1957_32282,.inl_.inl_.X3116_1956_32281,.inl_b_32274,.inl_.X3099_32273,.inl_.X3100_32268,.inl_c_32276,.inl_.X3098_32264,.inl_a_32260,.inl_.inl_c_1977_32252,.inl_.inl_.inl_b_1951_1983_32257,.inl_.inl_.inl_.X3116_1950_1982_32256,.inl_.inl_b_1973_32251,.inl_.inl_c_1966_32241,.inl_.inl_.inl_b_1951_1972_32246,.inl_.inl_.inl_.X3116_1950_1971_32245,.inl_.inl_b_1962_32240,.inl_.inl_.X3100_1961_32235,.inl_.inl_c_1958_32234,.inl_c_32265,.inl_.inl_b_1957_32232,.inl_.inl_.X3116_1956_32231,.inl_b_32224,.inl_.X3099_32223,.inl_.X3100_32218,.inl_c_32226,.inl_.X3098_32214,.inl_a_32210,.inl_.inl_c_1977_32200,.inl_.inl_.inl_b_1951_1983_32205,.inl_.inl_.inl_.X3116_1950_1982_32204,.inl_.inl_b_1973_32199,.inl_.inl_c_1966_32189,.inl_.inl_.inl_b_1951_1972_32194,.inl_.inl_.inl_.X3116_1950_1971_32193,.inl_.inl_b_1962_32188,.inl_.inl_.X3100_1961_32183,.inl_.inl_c_1958_32182,.inl_c_32215,.inl_.inl_b_1957_32180,.inl_.inl_.X3116_1956_32179,.inl_b_32172,.inl_.X3099_32171,.inl_.X3100_32166,.inl_c_32174,.inl_.X3098_32162,.inl_a_32158,_particle_save,.inl_c_32432,.inl_.inl_c_1966_32447,.inl_.inl_.inl_b_1951_1972_32452,.inl_.inl_.inl_.X3116_1950_1971_32451,.inl_.inl_b_1962_32446,.inl_.inl_c_1958_32440,.inl_.inl_.inl_.X3116_1950_1982_32462,.inl_.inl_.X3116_1956_32437,.inl_.inl_b_1957_32438,.inl_.X3100_32424,.inl_.inl_b_1973_32457,.inl_c_32163,.inl_.inl_.inl_b_1951_1983_32463,.inl_.inl_.X3100_1961_32441,.inl_a_32416,.inl_.X3098_32420,.inl_.X3099_32429,.inl_b_32430,.inl_.inl_c_1977_32458 29382, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 29385, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 29382, Local memory used for .inl_.inl_c_1977_32610,.inl_.inl_.inl_b_1951_1983_32615,.inl_.inl_.inl_.X3116_1950_1982_32614,.inl_.inl_b_1973_32609,.inl_.inl_c_1966_32599,.inl_.inl_.inl_b_1951_1972_32604,.inl_.inl_.inl_.X3116_1950_1971_32603,.inl_.inl_b_1962_32598,.inl_.inl_.X3100_1961_32593,.inl_.inl_c_1958_32592,.inl_c_32623,.inl_.inl_b_1957_32590,.inl_.inl_.X3116_1956_32589,.inl_b_32582,.inl_.X3099_32581,.inl_.X3100_32576,.inl_c_32584,.inl_.X3098_32572,.inl_a_32568,.inl_.inl_c_1977_32560,.inl_.inl_.inl_b_1951_1983_32565,.inl_.inl_.inl_.X3116_1950_1982_32564,.inl_.inl_b_1973_32559,.inl_.inl_c_1966_32549,.inl_.inl_.inl_b_1951_1972_32554,.inl_.inl_.inl_.X3116_1950_1971_32553,.inl_.inl_b_1962_32548,.inl_.inl_.X3100_1961_32543,.inl_.inl_c_1958_32542,.inl_c_32573,.inl_.inl_b_1957_32540,.inl_.inl_.X3116_1956_32539,.inl_b_32532,.inl_.X3099_32531,.inl_.X3100_32526,.inl_c_32534,.inl_.X3098_32522,.inl_a_32518,_particle_save,.inl_c_32634,.inl_.inl_c_1966_32649,.inl_.inl_.inl_b_1951_1972_32654,.inl_.inl_.inl_.X3116_1950_1971_32653,.inl_.inl_b_1962_32648,.inl_.inl_c_1958_32642,.inl_.inl_.inl_.X3116_1950_1982_32664,.inl_.inl_.X3116_1956_32639,.inl_.inl_b_1957_32640,.inl_.X3100_32626,.inl_.inl_b_1973_32659,.inl_c_32523,.inl_.inl_.inl_b_1951_1983_32665,.inl_.inl_.X3100_1961_32643,.inl_a_32618,.inl_.X3098_32622,.inl_.X3099_32631,.inl_b_32632,.inl_.inl_c_1977_32660 finally: 30541, Generating update self(_Cu_var,_Si_var,_Source_var,_Vacuum_box_var,_focus_center_var,_Cu_box_var,_Cu_total_var,_Origin_var,_Si_total_var,_instrument_var,_m2_mirror_var,_Start_of_bi_var,_monitor_PSD_var,_si_blade_12_var,_si_blade_1_var,_si_blade_2_var,_si_blade_3_var,_si_blade_4_var,_si_blade_5_var,_si_blade_6_var,_si_blade_7_var,_si_blade_8_var,_si_blade_0_var,_si_blade_10_var,_si_blade_11_var,_m4_mirror_var,_si_blade_9_var,_stop_var,_master_var,_monitor_Div_L_var,_monitor_L_var,_init_var) mcenabletrace: 6037, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===