INFO: No output directory specified (--dir) INFO: Using directory: "Many_meshes_20260201_034157" INFO: Regenerating c-file: Many_meshes.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./Many_meshes.c Many_meshes.instr Warning: DECLARE block contains 1 assignments (= sign). Move them into an INITIALIZE section. May fail at compile. CFLAGS= @NCRYSTALFLAGS@ -DFUNNEL WARNING: The parameter format of Sample_pow is initialized using a static {,,,} vector. -> Such static vectors support literal numbers ONLY. -> Any vector use of variables or defines must happen via a DECLARE/INITIALIZE pointer. ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: Component Sample_environment is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component Sample_environment -> GPU kernel from component stop ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./Many_meshes.out --> launching cmd: ncrystal-config --show buildflags DEBUG: CMD: nvc -o ./Many_meshes.out ./Many_meshes.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 "./Many_meshes.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 " "./Many_meshes.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, ^ "./Many_meshes.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, ^ "./Many_meshes.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); ^ "./Many_meshes.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); ^ "./Many_meshes.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); ^ "./Many_meshes.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); ^ "./Many_meshes.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*); ^ "./Many_meshes.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); ^ "./Many_meshes.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); ^ "./Many_meshes.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){ ^ "./Many_meshes.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){ ^ "./Many_meshes.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(); ^ "./Many_meshes.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); ^ "./Many_meshes.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 */ ^ "./Many_meshes.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); ^ "./Many_meshes.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); ^ "./Many_meshes.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]); ^ "./Many_meshes.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); ^ "./Many_meshes.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); ^ "./Many_meshes.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); ^ "./Many_meshes.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); ^ "./Many_meshes.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); ^ "./Many_meshes.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); ^ "./Many_meshes.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); ^ "./Many_meshes.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); ^ "./Many_meshes.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); ^ "./Many_meshes.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); ^ "./Many_meshes.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); ^ "./Many_meshes.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); ^ "./Many_meshes.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); ^ "./Many_meshes.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); ^ "./Many_meshes.c", line 4627: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ "./Many_meshes.c", line 5082: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] randstate_t randstate[7]; ^ "./Many_meshes.c", line 5001: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./Many_meshes.c", line 6328: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Many_meshes.c", line 8721: warning: variable "output" was declared but never referenced [declared_but_not_referenced] struct tagging_tree_node_struct *output; ^ "./Many_meshes.c", line 9276: warning: variable "permanent_list_length" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,permanent_list_length = 0; ^ "./Many_meshes.c", line 9303: warning: variable "geometry_output" was set but never used [set_but_not_used] int geometry_output; ^ "./Many_meshes.c", line 9832: warning: variable "x_vector" was declared but never referenced [declared_but_not_referenced] Coords x_vector = geometry->geometry_parameters.p_box_storage->x_vector; ^ "./Many_meshes.c", line 9833: warning: variable "y_vector" was declared but never referenced [declared_but_not_referenced] Coords y_vector = geometry->geometry_parameters.p_box_storage->y_vector; ^ "./Many_meshes.c", line 9834: warning: variable "z_vector" was declared but never referenced [declared_but_not_referenced] Coords z_vector = geometry->geometry_parameters.p_box_storage->z_vector; ^ "./Many_meshes.c", line 10056: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Many_meshes.c", line 10118: warning: variable "rotated_nx" was declared but never referenced [declared_but_not_referenced] double rotated_nx, rotated_ny, rotated_nz; ^ "./Many_meshes.c", line 10118: warning: variable "rotated_ny" was declared but never referenced [declared_but_not_referenced] double rotated_nx, rotated_ny, rotated_nz; ^ "./Many_meshes.c", line 10118: warning: variable "rotated_nz" was declared but never referenced [declared_but_not_referenced] double rotated_nx, rotated_ny, rotated_nz; ^ "./Many_meshes.c", line 10339: warning: variable "output" was set but never used [set_but_not_used] int output = 0; ^ "./Many_meshes.c", line 10644: 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; ^ "./Many_meshes.c", line 10645: 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; ^ "./Many_meshes.c", line 10890: warning: statement is unreachable [code_is_unreachable] return 0; ^ "./Many_meshes.c", line 10681: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Many_meshes.c", line 10683: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./Many_meshes.c", line 10684: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./Many_meshes.c", line 10685: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./Many_meshes.c", line 10709: warning: variable "verbal" was declared but never referenced [declared_but_not_referenced] int verbal = 0; ^ "./Many_meshes.c", line 10718: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Many_meshes.c", line 10718: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Many_meshes.c", line 10720: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Many_meshes.c", line 10762: warning: variable "C1" was declared but never referenced [declared_but_not_referenced] int C1 = counter; ^ "./Many_meshes.c", line 10931: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./Many_meshes.c", line 10961: warning: variable "output" was set but never used [set_but_not_used] int output = 0; ^ "./Many_meshes.c", line 10980: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Many_meshes.c", line 10980: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Many_meshes.c", line 10981: warning: variable "UNION_EPSILON" was declared but never referenced [declared_but_not_referenced] double UNION_EPSILON = 0.0000001; ^ "./Many_meshes.c", line 10982: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Many_meshes.c", line 11219: warning: variable "rotated_coordinates" was declared but never referenced [declared_but_not_referenced] Coords rotated_coordinates; ^ "./Many_meshes.c", line 11385: warning: variable "y" was set but never used [set_but_not_used] double x, y, z, dt; ^ "./Many_meshes.c", line 11440: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Many_meshes.c", line 11517: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Many_meshes.c", line 11729: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Many_meshes.c", line 11827: warning: variable "solutions" was declared but never referenced [declared_but_not_referenced] int iterate,number_of_solutions,solutions,number_of_positions = 30; ^ "./Many_meshes.c", line 12018: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Many_meshes.c", line 12216: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Many_meshes.c", line 12217: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Many_meshes.c", line 12802: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Many_meshes.c", line 12803: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Many_meshes.c", line 13062: 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; ^ "./Many_meshes.c", line 13067: 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; ^ "./Many_meshes.c", line 13068: 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; ^ "./Many_meshes.c", line 13069: 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; ^ "./Many_meshes.c", line 13076: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Many_meshes.c", line 13077: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Many_meshes.c", line 13200: warning: variable "square_offset" was declared but never referenced [declared_but_not_referenced] double square_offset; ^ "./Many_meshes.c", line 13494: warning: variable "debug_dist" was set but never used [set_but_not_used] double debug_dist; ^ "./Many_meshes.c", line 13560: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Many_meshes.c", line 13747: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Many_meshes.c", line 13750: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Many_meshes.c", line 13907: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Many_meshes.c", line 13910: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Many_meshes.c", line 14908: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int mask_index,mask_mode,found_index,logic_ALL; ^ "./Many_meshes.c", line 14811: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,mask_volume_number,mask_index; ^ "./Many_meshes.c", line 15130: 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; ^ "./Many_meshes.c", line 15340: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,iterate2,found_index,I_index,I_volume; ^ "./Many_meshes.c", line 15501: warning: variable "string_output" was declared but never referenced [declared_but_not_referenced] char string_output[124]; ^ "./Many_meshes.c", line 15905: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,mask_index; ^ "./Many_meshes.c", line 16621: 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 */ ^ "./Many_meshes.c", line 16623: 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 */ ^ "./Many_meshes.c", line 16630: 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 */ ^ "./Many_meshes.c", line 16650: 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); ^ "./Many_meshes.c", line 16652: 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); ^ "./Many_meshes.c", line 16654: 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, ^ "./Many_meshes.c", line 18211: warning: Routine "off_intersect_all" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_intersect_all(double* t0, double* t3, ^ "./Many_meshes.c", line 18234: warning: Routine "off_intersect" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_intersect(double* t0, double* t3, ^ "./Many_meshes.c", line 18255: warning: Routine "off_x_intersect" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_x_intersect(double *l0,double *l3, ^ "./Many_meshes.c", line 18342: warning: Routine "off_F" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double off_F(double x, double y,double z,double A,double B,double C,double D) { ^ "./Many_meshes.c", line 18347: warning: Routine "off_sign" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] char off_sign(double a) { ^ "./Many_meshes.c", line 18356: warning: Routine "off_normal" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void off_normal(Coords* n, polygon p) ^ "./Many_meshes.c", line 18382: warning: Routine "off_pnpoly" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_pnpoly(polygon p, Coords v) ^ "./Many_meshes.c", line 18385: warning: variable "minx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Many_meshes.c", line 18385: warning: variable "maxx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Many_meshes.c", line 18385: warning: variable "miny" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Many_meshes.c", line 18385: warning: variable "maxy" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Many_meshes.c", line 18385: warning: variable "minz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Many_meshes.c", line 18385: warning: variable "maxz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Many_meshes.c", line 18445: warning: Routine "off_intersectPoly" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_intersectPoly(intersection *inter, Coords a, Coords b, polygon p) ^ "./Many_meshes.c", line 18575: warning: Routine "off_init_planes" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void off_init_planes(Coords a, Coords b, ^ "./Many_meshes.c", line 18619: warning: Routine "off_clip_3D_mod" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_clip_3D_mod(intersection* t, Coords a, Coords b, ^ "./Many_meshes.c", line 18740: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Many_meshes.c", line 18852: warning: Routine "off_compare" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_compare (void const *a, void const *b) ^ "./Many_meshes.c", line 18864: warning: Routine "off_cleanDouble" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_cleanDouble(intersection* t, int* t_size) ^ "./Many_meshes.c", line 18899: warning: Routine "off_cleanInOut" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_cleanInOut(intersection* t, int* t_size) ^ "./Many_meshes.c", line 19155: warning: Routine "Min_int" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int Min_int(int x, int y) { ^ "./Many_meshes.c", line 19161: warning: Routine "merge" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void merge(intersection *arr, int l, int m, int r) ^ "./Many_meshes.c", line 19967: warning: variable "line_v" was declared but never referenced [declared_but_not_referenced] int line_v,line0,line; ^ "./Many_meshes.c", line 20424: warning: variable "buffer" was declared but never referenced [declared_but_not_referenced] unsigned char buffer[1000]; ^ "./Many_meshes.c", line 20631: warning: variable "x" was declared but never referenced [declared_but_not_referenced] double x,y,z; ^ "./Many_meshes.c", line 20631: warning: variable "y" was declared but never referenced [declared_but_not_referenced] double x,y,z; ^ "./Many_meshes.c", line 20631: warning: variable "z" was declared but never referenced [declared_but_not_referenced] double x,y,z; ^ "./Many_meshes.c", line 20689: warning: variable "vert_pair_0" was declared but never referenced [declared_but_not_referenced] int vert1, vert2, vert3, vert_pair_0; ^ "./Many_meshes.c", line 21529: warning: variable "choice" was declared but never referenced [declared_but_not_referenced] enum surface choice = surface->eSurface; ^ "./Many_meshes.c", line 22289: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Many_meshes.c", line 22277: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Many_meshes.c", line 22334: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Many_meshes.c", line 22411: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Many_meshes.c", line 22484: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Many_meshes.c", line 22533: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Many_meshes.c", line 22583: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Many_meshes.c", line 22651: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Many_meshes.c", line 22744: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./Many_meshes.c", line 22817: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./Many_meshes.c", line 22882: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./Many_meshes.c", line 22955: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./Many_meshes.c", line 23004: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./Many_meshes.c", line 23108: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./Many_meshes.c", line 23212: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./Many_meshes.c", line 23313: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./Many_meshes.c", line 23414: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./Many_meshes.c", line 23492: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./Many_meshes.c", line 23541: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./Many_meshes.c", line 26386: warning: incompatible redefinition of macro "exit" (declared at line 623) [bad_macro_redef] #define exit(...) noprintf() ^ "./Many_meshes.c", line 26398: 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 ^ "./Many_meshes.c", line 26488: warning: Routine "class_Source_simple_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void class_Source_simple_trace(_class_Source_simple *_comp ^ "./Many_meshes.c", line 26591: 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 ^ "./Many_meshes.c", line 26662: 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 ^ "./Many_meshes.c", line 26706: warning: Routine "class_Union_mesh_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void class_Union_mesh_trace(_class_Union_mesh *_comp ^ "./Many_meshes.c", line 27462: warning: variable "physics_output" was set but never used [set_but_not_used] int physics_output; ^ "./Many_meshes.c", line 28322: warning: variable "q_qc_quadratic_diff" was declared but never referenced [declared_but_not_referenced] double q_qc_quadratic_diff; ^ "./Many_meshes.c", line 28355: warning: variable "theta2" was set but never used [set_but_not_used] double theta1, theta2; ^ "./Many_meshes.c", line 26965: warning: variable "start_weight" was set but never used [set_but_not_used] double start_weight; ^ "./Many_meshes.c", line 31517: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Many_meshes.c", line 31518: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Many_meshes.c", line 1504: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Many_meshes.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 Table_Index: 17431, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 17499, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 17578, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 18046, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 18062, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 18080, Generating acc routine seq Generating NVIDIA GPU code off_F: 18342, Generating acc routine seq Generating NVIDIA GPU code off_sign: 18347, Generating acc routine seq Generating NVIDIA GPU code off_normal: 18357, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 18383, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 18446, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 18577, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 18622, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 18737, Generating acc routine seq Generating NVIDIA GPU code off_compare: 18853, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 18865, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 18900, Generating acc routine seq Generating NVIDIA GPU code Min_int: 19155, Generating acc routine seq Generating NVIDIA GPU code merge: 19162, Generating acc routine seq Generating NVIDIA GPU code CUDA global memory used for L,R p_to_quadratic: 19270, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code quadraticSolve: 19285, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code off_intersect_all: 19339, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 19456, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 19478, Generating acc routine seq Generating NVIDIA GPU code init: 26356, Generating update device(_sample_gas_var,_det_var,_arm_crack_var,_gas_process_var,_Sample_environment_var,_Sample_inc_var,_Sample_pow_var,_entry_mon_var,_masking_crack_var,_Sample_var,_logger_space_zy_var,_arm_sample_position_var,_instrument_var,_logger_space_zx_var,_Origin_var,_stop_var,_source_var,_crack_var,_init_var) class_Progress_bar_trace: 26399, Generating acc routine seq Generating NVIDIA GPU code class_Source_simple_trace: 26489, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 26592, Generating acc routine seq Generating NVIDIA GPU code class_NCrystal_process_trace: 26663, Generating acc routine seq Generating NVIDIA GPU code class_Union_mesh_trace: 26707, Generating acc routine seq Generating NVIDIA GPU code raytrace_all_funnel: 29237, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 29241, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 29241, Generating implicit firstprivate(mpi_node_rank,_particle,seed,ncount) 29250, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 29255, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 29250, Local memory used for .inl_.inl_c_1977_33010,.inl_.inl_.inl_b_1951_1983_33015,.inl_.inl_.inl_.X3151_1950_1982_33014,.inl_.inl_b_1973_33009,.inl_.inl_c_1966_32999,.inl_.inl_.inl_b_1951_1972_33004,.inl_.inl_.inl_.X3151_1950_1971_33003,.inl_.inl_b_1962_32998,.inl_.inl_.X3135_1961_32993,.inl_.inl_c_1958_32992,.inl_c_33025,.inl_.inl_b_1957_32990,.inl_.inl_.X3151_1956_32989,.inl_b_32982,.inl_.X3134_32981,.inl_.X3135_32976,.inl_c_32984,.inl_.X3133_32972,.inl_a_32968,.inl_.inl_c_1977_32958,.inl_.inl_.inl_b_1951_1983_32963,.inl_.inl_.inl_.X3151_1950_1982_32962,.inl_.inl_b_1973_32957,.inl_.inl_c_1966_32947,.inl_.inl_.inl_b_1951_1972_32952,.inl_.inl_.inl_.X3151_1950_1971_32951,.inl_.inl_b_1962_32946,.inl_.inl_.X3135_1961_32941,.inl_.inl_c_1958_32940,.inl_c_32973,.inl_.inl_b_1957_32938,.inl_.inl_.X3151_1956_32937,.inl_b_32930,.inl_.X3134_32929,.inl_.X3135_32924,.inl_c_32932,.inl_.X3133_32920,.inl_a_32916,.inl_.inl_c_1977_32908,.inl_.inl_.inl_b_1951_1983_32913,.inl_.inl_.inl_.X3151_1950_1982_32912,.inl_.inl_b_1973_32907,.inl_.inl_c_1966_32897,.inl_.inl_.inl_b_1951_1972_32902,.inl_.inl_.inl_.X3151_1950_1971_32901,.inl_.inl_b_1962_32896,.inl_.inl_.X3135_1961_32891,.inl_.inl_c_1958_32890,.inl_c_32921,.inl_.inl_b_1957_32888,.inl_.inl_.X3151_1956_32887,.inl_b_32880,.inl_.X3134_32879,.inl_.X3135_32874,.inl_c_32882,.inl_.X3133_32870,.inl_a_32866,.inl_.inl_c_1977_32858,.inl_.inl_.inl_b_1951_1983_32863,.inl_.inl_.inl_.X3151_1950_1982_32862,.inl_.inl_b_1973_32857,.inl_.inl_c_1966_32847,.inl_.inl_.inl_b_1951_1972_32852,.inl_.inl_.inl_.X3151_1950_1971_32851,.inl_.inl_b_1962_32846,.inl_.inl_.X3135_1961_32841,.inl_.inl_c_1958_32840,.inl_c_32871,.inl_.inl_b_1957_32838,.inl_.inl_.X3151_1956_32837,.inl_b_32830,.inl_.X3134_32829,.inl_.X3135_32824,.inl_c_32832,.inl_.X3133_32820,.inl_a_32816,.inl_.inl_c_1977_32806,.inl_.inl_.inl_b_1951_1983_32811,.inl_.inl_.inl_.X3151_1950_1982_32810,.inl_.inl_b_1973_32805,.inl_.inl_c_1966_32795,.inl_.inl_.inl_b_1951_1972_32800,.inl_.inl_.inl_.X3151_1950_1971_32799,.inl_.inl_b_1962_32794,.inl_.inl_.X3135_1961_32789,.inl_.inl_c_1958_32788,.inl_c_32821,.inl_.inl_b_1957_32786,.inl_.inl_.X3151_1956_32785,.inl_b_32778,.inl_.X3134_32777,.inl_.X3135_32772,.inl_c_32780,.inl_.X3133_32768,.inl_a_32764,_particle_save,.inl_c_33036,.inl_.inl_c_1966_33051,.inl_.inl_.inl_b_1951_1972_33056,.inl_.inl_.inl_.X3151_1950_1971_33055,.inl_.inl_b_1962_33050,.inl_.inl_c_1958_33044,.inl_.inl_.inl_.X3151_1950_1982_33066,.inl_.inl_.X3151_1956_33041,.inl_.inl_b_1957_33042,.inl_.X3135_33028,.inl_.inl_b_1973_33061,.inl_c_32769,.inl_.inl_.inl_b_1951_1983_33067,.inl_.inl_.X3135_1961_33045,.inl_a_33020,.inl_.X3133_33024,.inl_.X3134_33033,.inl_b_33034,.inl_.inl_c_1977_33062 29417, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 29420, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 29417, Local memory used for _particle_save,.inl_c_33138,.inl_.inl_c_1966_33153,.inl_.inl_.inl_b_1951_1972_33158,.inl_.inl_.inl_.X3151_1950_1971_33157,.inl_.inl_b_1962_33152,.inl_.inl_c_1958_33146,.inl_.inl_.inl_.X3151_1950_1982_33168,.inl_.inl_.X3151_1956_33143,.inl_.inl_b_1957_33144,.inl_.X3135_33130,.inl_.inl_b_1973_33163,.inl_c_33127,.inl_.inl_.inl_b_1951_1983_33169,.inl_.inl_.X3135_1961_33147,.inl_a_33122,.inl_.X3133_33126,.inl_.X3134_33135,.inl_b_33136,.inl_.inl_c_1977_33164 finally: 30632, Generating update self(_sample_gas_var,_det_var,_arm_crack_var,_gas_process_var,_Sample_environment_var,_Sample_inc_var,_Sample_pow_var,_entry_mon_var,_masking_crack_var,_Sample_var,_logger_space_zy_var,_arm_sample_position_var,_instrument_var,_logger_space_zx_var,_Origin_var,_stop_var,_source_var,_crack_var,_init_var) mcenabletrace: 6037, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===