INFO: No output directory specified (--dir) INFO: Using directory: "Geometry_test_20250514_033520" INFO: Regenerating c-file: Geometry_test.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./Geometry_test.c Geometry_test.instr Warning: DECLARE block contains 2 assignments (= sign). Move them into an INITIALIZE section. May fail at compile. CFLAGS= -DFUNNEL WARNING: The parameter format of Al_Powder 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 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component sample -> GPU kernel from component detector ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./Geometry_test.out DEBUG: CMD: nvc -o ./Geometry_test.out ./Geometry_test.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 -fast -Minfo=accel -acc=gpu -gpu=mem:managed -DOPENACC -DFUNNEL "./Geometry_test.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 " "./Geometry_test.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, ^ "./Geometry_test.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, ^ "./Geometry_test.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); ^ "./Geometry_test.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); ^ "./Geometry_test.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); ^ "./Geometry_test.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); ^ "./Geometry_test.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*); ^ "./Geometry_test.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); ^ "./Geometry_test.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); ^ "./Geometry_test.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){ ^ "./Geometry_test.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){ ^ "./Geometry_test.c", line 296: warning: Routine "noprintf" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int noprintf(); ^ "./Geometry_test.c", line 298: 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); ^ "./Geometry_test.c", line 648: 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 */ ^ "./Geometry_test.c", line 869: 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); ^ "./Geometry_test.c", line 886: 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); ^ "./Geometry_test.c", line 888: 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]); ^ "./Geometry_test.c", line 896: 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); ^ "./Geometry_test.c", line 898: 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); ^ "./Geometry_test.c", line 900: 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); ^ "./Geometry_test.c", line 902: 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); ^ "./Geometry_test.c", line 904: 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); ^ "./Geometry_test.c", line 1000: 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); ^ "./Geometry_test.c", line 1002: 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); ^ "./Geometry_test.c", line 1004: 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); ^ "./Geometry_test.c", line 1006: 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); ^ "./Geometry_test.c", line 1008: 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); ^ "./Geometry_test.c", line 1010: 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); ^ "./Geometry_test.c", line 1012: 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); ^ "./Geometry_test.c", line 1014: 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); ^ "./Geometry_test.c", line 1016: 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); ^ "./Geometry_test.c", line 4571: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ "./Geometry_test.c", line 5026: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] randstate_t randstate[7]; ^ "./Geometry_test.c", line 4945: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./Geometry_test.c", line 6272: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Geometry_test.c", line 8296: warning: variable "output" was declared but never referenced [declared_but_not_referenced] struct tagging_tree_node_struct *output; ^ "./Geometry_test.c", line 8820: warning: variable "permanent_list_length" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,permanent_list_length = 0; ^ "./Geometry_test.c", line 8843: warning: variable "geometry_output" was set but never used [set_but_not_used] int geometry_output; ^ "./Geometry_test.c", line 9331: warning: variable "x_vector" was declared but never referenced [declared_but_not_referenced] Coords x_vector = geometry->geometry_parameters.p_box_storage->x_vector; ^ "./Geometry_test.c", line 9332: warning: variable "y_vector" was declared but never referenced [declared_but_not_referenced] Coords y_vector = geometry->geometry_parameters.p_box_storage->y_vector; ^ "./Geometry_test.c", line 9333: warning: variable "z_vector" was declared but never referenced [declared_but_not_referenced] Coords z_vector = geometry->geometry_parameters.p_box_storage->z_vector; ^ "./Geometry_test.c", line 9493: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Geometry_test.c", line 9713: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./Geometry_test.c", line 9872: 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; ^ "./Geometry_test.c", line 9873: 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; ^ "./Geometry_test.c", line 10148: warning: statement is unreachable [code_is_unreachable] return 0; ^ "./Geometry_test.c", line 9907: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Geometry_test.c", line 9909: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./Geometry_test.c", line 9910: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./Geometry_test.c", line 9911: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./Geometry_test.c", line 9935: warning: variable "verbal" was declared but never referenced [declared_but_not_referenced] int verbal = 0; ^ "./Geometry_test.c", line 9944: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Geometry_test.c", line 9944: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Geometry_test.c", line 9946: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Geometry_test.c", line 9995: warning: variable "C1" was declared but never referenced [declared_but_not_referenced] int C1 = counter; ^ "./Geometry_test.c", line 10162: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./Geometry_test.c", line 10163: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./Geometry_test.c", line 10164: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./Geometry_test.c", line 10193: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Geometry_test.c", line 10251: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./Geometry_test.c", line 10267: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Geometry_test.c", line 10267: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Geometry_test.c", line 10268: warning: variable "UNION_EPSILON" was declared but never referenced [declared_but_not_referenced] double UNION_EPSILON = 0.0000001; ^ "./Geometry_test.c", line 10269: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Geometry_test.c", line 10706: warning: variable "vector2" is used before its value is set [used_before_set] if (verbal == 1) printf("vector1 = (%f,%f,%f)\n",vector1.x,vector1.y,vector2.z); ^ "./Geometry_test.c", line 10695: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Geometry_test.c", line 10772: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Geometry_test.c", line 10979: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Geometry_test.c", line 11077: warning: variable "solutions" was declared but never referenced [declared_but_not_referenced] int iterate,number_of_solutions,solutions,number_of_positions = 30; ^ "./Geometry_test.c", line 11263: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Geometry_test.c", line 11456: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Geometry_test.c", line 11457: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Geometry_test.c", line 11991: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Geometry_test.c", line 11992: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Geometry_test.c", line 12391: warning: variable "square_center" is used before its value is set [used_before_set] Coords box_end_point = coords_sub(coords_set(0,0,-z_depth/2),square_center); ^ "./Geometry_test.c", line 12251: 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; ^ "./Geometry_test.c", line 12256: 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; ^ "./Geometry_test.c", line 12257: 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; ^ "./Geometry_test.c", line 12258: 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; ^ "./Geometry_test.c", line 12265: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Geometry_test.c", line 12266: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Geometry_test.c", line 12389: warning: variable "square_offset" was declared but never referenced [declared_but_not_referenced] double square_offset; ^ "./Geometry_test.c", line 12655: warning: variable "debug_dist" was set but never used [set_but_not_used] double debug_dist; ^ "./Geometry_test.c", line 12721: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Geometry_test.c", line 12907: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Geometry_test.c", line 12910: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Geometry_test.c", line 13067: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Geometry_test.c", line 13070: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Geometry_test.c", line 13989: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int mask_index,mask_mode,found_index,logic_ALL; ^ "./Geometry_test.c", line 13898: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,mask_volume_number,mask_index; ^ "./Geometry_test.c", line 14201: 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; ^ "./Geometry_test.c", line 14391: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,iterate2,found_index,I_index,I_volume; ^ "./Geometry_test.c", line 14540: warning: variable "string_output" was declared but never referenced [declared_but_not_referenced] char string_output[124]; ^ "./Geometry_test.c", line 14944: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,mask_index; ^ "./Geometry_test.c", line 15643: 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 */ ^ "./Geometry_test.c", line 15645: 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 */ ^ "./Geometry_test.c", line 15652: 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 */ ^ "./Geometry_test.c", line 15672: 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); ^ "./Geometry_test.c", line 15674: 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); ^ "./Geometry_test.c", line 15676: 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, ^ "./Geometry_test.c", line 17222: 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, ^ "./Geometry_test.c", line 17245: 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, ^ "./Geometry_test.c", line 17266: 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, ^ "./Geometry_test.c", line 17349: 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) { ^ "./Geometry_test.c", line 17354: 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) { ^ "./Geometry_test.c", line 17363: 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) ^ "./Geometry_test.c", line 17389: 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) ^ "./Geometry_test.c", line 17392: 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; ^ "./Geometry_test.c", line 17392: 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; ^ "./Geometry_test.c", line 17392: 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; ^ "./Geometry_test.c", line 17392: 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; ^ "./Geometry_test.c", line 17392: 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; ^ "./Geometry_test.c", line 17392: 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; ^ "./Geometry_test.c", line 17452: 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) ^ "./Geometry_test.c", line 17582: 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, ^ "./Geometry_test.c", line 17626: 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, ^ "./Geometry_test.c", line 17749: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Geometry_test.c", line 17863: 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) ^ "./Geometry_test.c", line 17875: 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) ^ "./Geometry_test.c", line 17910: 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) ^ "./Geometry_test.c", line 18162: 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) { ^ "./Geometry_test.c", line 18168: 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) ^ "./Geometry_test.c", line 18998: warning: variable "count" is used before its value is set [used_before_set] for(line0=0; line0storage->Detector_3D.D1min && p1Detector_3D.D1max && p2>storage->Detector_3D.D2min && p2Detector_3D.D2max && p3>storage->Detector_3D.D3min && p3Detector_3D.D3max) { ^ "./Geometry_test.c", line 22123: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Geometry_test.c", line 22119: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Geometry_test.c", line 22179: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Geometry_test.c", line 22164: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Geometry_test.c", line 22242: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Geometry_test.c", line 22227: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Geometry_test.c", line 22302: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Geometry_test.c", line 22287: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Geometry_test.c", line 22383: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Geometry_test.c", line 22350: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Geometry_test.c", line 22453: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Geometry_test.c", line 22438: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Geometry_test.c", line 22513: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Geometry_test.c", line 22498: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Geometry_test.c", line 22594: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Geometry_test.c", line 22561: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./Geometry_test.c", line 22664: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Geometry_test.c", line 22649: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./Geometry_test.c", line 22721: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Geometry_test.c", line 22709: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./Geometry_test.c", line 22766: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./Geometry_test.c", line 22837: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./Geometry_test.c", line 22886: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./Geometry_test.c", line 22981: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./Geometry_test.c", line 23076: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./Geometry_test.c", line 23169: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./Geometry_test.c", line 23270: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./Geometry_test.c", line 23369: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./Geometry_test.c", line 23459: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./Geometry_test.c", line 23560: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 20; ^ "./Geometry_test.c", line 23661: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 21; ^ "./Geometry_test.c", line 23762: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 22; ^ "./Geometry_test.c", line 23874: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 23; ^ "./Geometry_test.c", line 23923: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 24; ^ "./Geometry_test.c", line 23997: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 25; ^ "./Geometry_test.c", line 24073: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 26; ^ "./Geometry_test.c", line 24152: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Geometry_test.c", line 24149: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 27; ^ "./Geometry_test.c", line 25661: warning: variable "is_cylinder" was set but never used [set_but_not_used] int is_cylinder = 0; ^ "./Geometry_test.c", line 25799: warning: variable "l2" was declared but never referenced [declared_but_not_referenced] int l1,l2; ^ "./Geometry_test.c", line 27994: 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 ^ "./Geometry_test.c", line 28084: warning: Routine "class_Source_div_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void class_Source_div_trace(_class_Source_div *_comp ^ "./Geometry_test.c", line 28720: warning: variable "physics_output" was set but never used [set_but_not_used] int physics_output; ^ "./Geometry_test.c", line 28347: warning: variable "start_weight" was set but never used [set_but_not_used] double start_weight; ^ "./Geometry_test.c", line 29655: 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 ^ "./Geometry_test.c", line 32686: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Geometry_test.c", line 32687: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Geometry_test.c", line 1508: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Geometry_test.c", line 2928: 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: 1556, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1560, Generating acc routine seq Generating NVIDIA GPU code str_len: 1569, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4192, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4623, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4634, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4643, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4655, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4667, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4677, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4687, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4695, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4705, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4727, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4734, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4780, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4815, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4826, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4843, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4854, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4870, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4899, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4910, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4914, Generating acc routine seq Generating NVIDIA GPU code sort_absorb_last: 4949, Generating present(particles[:buffer_len],pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 4956, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 4965, #pragma acc loop seq 4949, Generating implicit copy(lens[:]) [if not already present] 4956, Generating implicit firstprivate(ll,l) 4967, Accelerator restriction: induction variable live-out from loop: i 4968, Accelerator restriction: induction variable live-out from loop: i 4969, Accelerator restriction: induction variable live-out from loop: i 4970, Accelerator restriction: induction variable live-out from loop: i 4972, Accelerator restriction: induction variable live-out from loop: j 4973, Accelerator restriction: induction variable live-out from loop: j 4974, Accelerator restriction: induction variable live-out from loop: j 4975, Accelerator restriction: induction variable live-out from loop: j 4997, Generating present(pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 5001, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5004, #pragma acc loop seq 4997, Generating implicit copyin(lens[:]) [if not already present] Generating implicit copy(particles[:]) [if not already present] Generating implicit copyin(los[:]) [if not already present] 5004, Generating implicit firstprivate(l) 5021, Generating present(particles[:buffer_len]) Generating implicit firstprivate(accumlen,tidx,mult) Generating NVIDIA GPU code 5025, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5032, #pragma acc loop seq 5021, Local memory used for targetbuffer,sourcebuffer mccoordschange: 5091, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5122, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5139, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5238, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5322, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5388, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5465, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5737, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5749, Generating acc routine seq Generating NVIDIA GPU code _hash: 5781, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5822, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5833, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5838, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5846, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5854, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5861, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6541, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6578, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6638, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6655, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6770, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6825, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 16442, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 16510, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 16589, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 17057, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 17073, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 17091, Generating acc routine seq Generating NVIDIA GPU code off_F: 17349, Generating acc routine seq Generating NVIDIA GPU code off_sign: 17354, Generating acc routine seq Generating NVIDIA GPU code off_normal: 17364, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 17390, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 17453, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 17584, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 17629, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 17746, Generating acc routine seq Generating NVIDIA GPU code off_compare: 17864, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 17876, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 17911, Generating acc routine seq Generating NVIDIA GPU code Min_int: 18162, Generating acc routine seq Generating NVIDIA GPU code merge: 18169, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 18273, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code quadraticSolve: 18288, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code off_intersect_all: 18342, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 18459, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 18481, Generating acc routine seq Generating NVIDIA GPU code init: 27952, Generating update device(_detector_var,_Cu_var,_Vanadium_incoherent_var,_Al_Powder_var,_Al_incoherent_var,_Cu_Powder_var,_Al_var,_Cu_incoherent_var,_Vanadium_var,_scat_direction_var,_sample_cone_var,_cryostat_wall_vacuum_var,_a1_var,_sample_pos_var,_instrument_var,_sample_box_var,_stop_var,_test_logger_1D_var,_test_logger_2DQ_var,_test_logger_2D_space_zx_var,_test_logger_3D_space_var,_test_logger_2D_space_zy_var,_sample_var,_sample_sphere_var,_detector_scat_var,_cryostat_wall_var,_source_var,_init_var) class_Progress_bar_trace: 27995, Generating acc routine seq Generating NVIDIA GPU code class_Source_div_trace: 28085, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 29656, Generating acc routine seq Generating NVIDIA GPU code raytrace_all_funnel: 30088, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 30092, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 30088, Local memory used for .inl_.inl_mcneutron_0_34313,.inl_particle_34298,.inl_.X3008_34315,.inl_.inl_.X3213_15_34314 30092, Generating implicit firstprivate(seed,_particle) 30102, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 30107, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 30102, Local memory used for .inl_.inl_c_1921_34362,.inl_.inl_.inl_b_1895_1927_34367,.inl_.inl_.inl_.X3178_1894_1926_34366,.inl_.inl_b_1917_34361,.inl_.inl_c_1910_34351,.inl_.inl_.inl_b_1895_1916_34356,.inl_.inl_.inl_.X3178_1894_1915_34355,.inl_.inl_b_1906_34350,.inl_.inl_.X3162_1905_34345,.inl_.inl_c_1902_34344,.inl_c_34377,.inl_.inl_b_1901_34342,.inl_.inl_.X3178_1900_34341,.inl_b_34334,.inl_.X3161_34333,.inl_.X3162_34328,.inl_c_34336,.inl_.X3160_34324,.inl_a_34320,.inl_c_34388,_particle_save,.inl_.inl_c_1910_34403,.inl_.inl_.inl_b_1895_1916_34408,.inl_.inl_.inl_.X3178_1894_1915_34407,.inl_.inl_b_1906_34402,.inl_.inl_c_1902_34396,.inl_.inl_.inl_.X3178_1894_1926_34418,.inl_.inl_.X3178_1900_34393,.inl_.inl_b_1901_34394,.inl_.X3162_34380,.inl_.inl_b_1917_34413,.inl_c_34325,.inl_.inl_.inl_b_1895_1927_34419,.inl_.inl_.X3162_1905_34397,.inl_a_34372,.inl_.X3160_34376,.inl_.X3161_34385,.inl_b_34386,.inl_.inl_c_1921_34414 30269, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 30272, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 30269, Local memory used for .inl_.inl_c_1921_34514,.inl_.inl_.inl_b_1895_1927_34519,.inl_.inl_.inl_.X3178_1894_1926_34518,.inl_.inl_b_1917_34513,.inl_.inl_c_1910_34503,.inl_.inl_.inl_b_1895_1916_34508,.inl_.inl_.inl_.X3178_1894_1915_34507,.inl_.inl_b_1906_34502,.inl_.inl_.X3162_1905_34497,.inl_.inl_c_1902_34496,.inl_c_34527,.inl_.inl_b_1901_34494,.inl_.inl_.X3178_1900_34493,.inl_b_34486,.inl_.X3161_34485,.inl_.X3162_34480,.inl_c_34488,.inl_.X3160_34476,.inl_a_34472,_particle_save,.inl_c_34538,.inl_.inl_c_1910_34553,.inl_.inl_.inl_b_1895_1916_34558,.inl_.inl_.inl_.X3178_1894_1915_34557,.inl_.inl_b_1906_34552,.inl_.inl_c_1902_34546,.inl_.inl_.inl_.X3178_1894_1926_34568,.inl_.inl_.X3178_1900_34543,.inl_.inl_b_1901_34544,.inl_.X3162_34530,.inl_.inl_b_1917_34563,.inl_c_34477,.inl_.inl_.inl_b_1895_1927_34569,.inl_.inl_.X3162_1905_34547,.inl_a_34522,.inl_.X3160_34526,.inl_.X3161_34535,.inl_b_34536,.inl_.inl_c_1921_34564 finally: 31830, Generating update self(_detector_var,_Cu_var,_Vanadium_incoherent_var,_Al_Powder_var,_Al_incoherent_var,_Cu_Powder_var,_Al_var,_Cu_incoherent_var,_Vanadium_var,_scat_direction_var,_sample_cone_var,_cryostat_wall_vacuum_var,_a1_var,_sample_pos_var,_instrument_var,_sample_box_var,_stop_var,_test_logger_1D_var,_test_logger_2DQ_var,_test_logger_2D_space_zx_var,_test_logger_3D_space_var,_test_logger_2D_space_zy_var,_sample_var,_sample_sphere_var,_detector_scat_var,_cryostat_wall_var,_source_var,_init_var) mcenabletrace: 5981, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===