INFO: No output directory specified (--dir) INFO: Using directory: "Laue_camera_20251212_143643" INFO: Regenerating c-file: Laue_camera.c WARNING: Full-path code-generator "/u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS" not found!! WARNING: Attempting replacement by "mcstas-antlr -I$MCSTAS" DEBUG: CMD: mcstas-antlr -I$MCSTAS -t -o ./Laue_camera.c Laue_camera.instr 2025-12-12 14:37:31.220 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Single_crystal_process(0):read_table-lib :Single_crystal_process(1):interoff-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib 2025-12-12 14:37:31.220 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to monitor_nd-lib read_table-lib interoff-lib 2025-12-12 14:37:31.220 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib monitor_nd-lib line 7988:6 no viable alternative at input 'print_1d_int_list(Volumes[volume_index]->geometry.mask_intersect_list,string_output)\n )' 2025-12-12 14:37:41.751 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 7988,6 2025-12-12 14:37:41.752 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) sprintf(string_output,"Intersect check list for Volume %d",volume_index); 2025-12-12 14:37:41.752 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) print_1d_int_list(Volumes[volume_index]->geometry.intersect_check_list,string_output); 2025-12-12 14:37:41.753 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) sprintf(string_output,"Mask intersect check list for Volume %d",volume_index); 2025-12-12 14:37:41.753 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) print_1d_int_list(Volumes[volume_index]->geometry.mask_intersect_list,string_output) 2025-12-12 14:37:41.753 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2025-12-12 14:37:41.753 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~~~~~^ no viable alternative at input 'print_1d_int_list(Volumes[volume_index]->geometry.mask_intersect_list,string_output)\n )' 2025-12-12 14:37:41.753 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } 2025-12-12 14:37:41.753 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - }; line 7988:6 mismatched input ')' expecting '}' 2025-12-12 14:37:41.768 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 7988,6 2025-12-12 14:37:41.769 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) sprintf(string_output,"Intersect check list for Volume %d",volume_index); 2025-12-12 14:37:41.769 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) print_1d_int_list(Volumes[volume_index]->geometry.intersect_check_list,string_output); 2025-12-12 14:37:41.769 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) sprintf(string_output,"Mask intersect check list for Volume %d",volume_index); 2025-12-12 14:37:41.769 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) print_1d_int_list(Volumes[volume_index]->geometry.mask_intersect_list,string_output) 2025-12-12 14:37:41.769 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2025-12-12 14:37:41.769 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~~~~~^ mismatched input ')' expecting '}' 2025-12-12 14:37:41.769 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } 2025-12-12 14:37:41.769 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - }; line 7990:0 mismatched input '}' expecting 2025-12-12 14:37:41.770 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 7990,0 2025-12-12 14:37:41.771 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) sprintf(string_output,"Mask intersect check list for Volume %d",volume_index); 2025-12-12 14:37:41.771 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) print_1d_int_list(Volumes[volume_index]->geometry.mask_intersect_list,string_output) 2025-12-12 14:37:41.771 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2025-12-12 14:37:41.771 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - } 2025-12-12 14:37:41.771 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - }; 2025-12-12 14:37:41.771 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ^ mismatched input '}' expecting 2025-12-12 14:37:41.771 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - 2025-12-12 14:37:41.771 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - void generate_parents_lists(struct pointer_to_1d_int_list **parents_lists, struct Volume_struct **Volumes, int number_of_volumes, int verbal, int mask_mode) { No initialization present? ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component init -> GPU kernel from component YBaCuO_incoherent -> GPU kernel from component single_crystal_orientation_110_vertical -> GPU kernel from component single_crystal_orientation_001_along_x -> GPU kernel from component YBaCuO_single_crystal -> GPU kernel from component YBaCuO -> GPU kernel from component Origin -> GPU kernel from component source -> GPU kernel from component slit -> GPU kernel from component cylinder_sample_union Component test_sample is NOACC, CPUONLY=True ->FUNNEL mode enabled, SPLIT within buffer. -> GPU kernel from component Banana_monitor -> GPU kernel from component PSDlin_transmission_scattered -> GPU kernel from component PSDlin_transmission_transmitted -> GPU kernel from component stop ----------------------------------------------------------- CFLAGS= -DFUNNEL DEBUG: CMD: mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./Laue_camera.out DEBUG: CMD: nvc -o ./Laue_camera.out ./Laue_camera.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 -DFUNNEL "./Laue_camera.c", line 94: 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 " "./Laue_camera.c", line 96: 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, double t, double sx, double sy, double sz, double p, int mcgravitation, void * mcMagnet, int allow_backprop); ^ "./Laue_camera.c", line 98: 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 mcparticle, double * x, double * y, double * z, double * vx, double * vy, double * vz, double * t, double * sx, double * sy, double * sz, double * p); ^ "./Laue_camera.c", line 112: 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); ^ "./Laue_camera.c", line 116: 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); ^ "./Laue_camera.c", line 145: 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); ^ "./Laue_camera.c", line 116: 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); ^ "./Laue_camera.c", line 178: 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*); ^ "./Laue_camera.c", line 204: 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); ^ "./Laue_camera.c", line 217: 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); ^ "./Laue_camera.c", line 234: 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){ ^ "./Laue_camera.c", line 245: 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){ ^ "./Laue_camera.c", line 313: warning: Routine "noprintf" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int noprintf(); ^ "./Laue_camera.c", line 315: 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); ^ "./Laue_camera.c", line 666: 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 */ ^ "./Laue_camera.c", line 887: 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); ^ "./Laue_camera.c", line 904: 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); ^ "./Laue_camera.c", line 906: 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]); ^ "./Laue_camera.c", line 914: 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); ^ "./Laue_camera.c", line 916: 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); ^ "./Laue_camera.c", line 918: 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); ^ "./Laue_camera.c", line 920: 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); ^ "./Laue_camera.c", line 922: 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); ^ "./Laue_camera.c", line 1018: 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); ^ "./Laue_camera.c", line 1020: 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); ^ "./Laue_camera.c", line 1022: 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); ^ "./Laue_camera.c", line 1024: 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); ^ "./Laue_camera.c", line 1026: 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); ^ "./Laue_camera.c", line 1028: 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); ^ "./Laue_camera.c", line 1030: 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); ^ "./Laue_camera.c", line 1032: 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); ^ "./Laue_camera.c", line 1034: 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); ^ "./Laue_camera.c", line 4645: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ "./Laue_camera.c", line 5100: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] randstate_t randstate[7]; ^ "./Laue_camera.c", line 5019: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./Laue_camera.c", line 6346: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Laue_camera.c", line 7146: warning: Routine "Monitor_nD_Trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int Monitor_nD_Trace(MonitornD_Defines_type *, MonitornD_Variables_type *, _class_particle* _particle); ^ "./Laue_camera.c", line 7269: 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 */ ^ "./Laue_camera.c", line 7271: 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 */ ^ "./Laue_camera.c", line 7278: 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 */ ^ "./Laue_camera.c", line 7298: 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); ^ "./Laue_camera.c", line 7300: 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); ^ "./Laue_camera.c", line 7302: 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, ^ "./Laue_camera.c", line 7427: 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, ^ "./Laue_camera.c", line 7450: 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, ^ "./Laue_camera.c", line 7471: 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, ^ "./Laue_camera.c", line 9310: warning: variable "output" was declared but never referenced [declared_but_not_referenced] struct tagging_tree_node_struct *output; ^ "./Laue_camera.c", line 9866: warning: variable "permanent_list_length" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,permanent_list_length = 0; ^ "./Laue_camera.c", line 9893: warning: variable "geometry_output" was set but never used [set_but_not_used] int geometry_output; ^ "./Laue_camera.c", line 10418: warning: variable "x_vector" was declared but never referenced [declared_but_not_referenced] Coords x_vector = geometry->geometry_parameters.p_box_storage->x_vector; ^ "./Laue_camera.c", line 10419: warning: variable "y_vector" was declared but never referenced [declared_but_not_referenced] Coords y_vector = geometry->geometry_parameters.p_box_storage->y_vector; ^ "./Laue_camera.c", line 10420: warning: variable "z_vector" was declared but never referenced [declared_but_not_referenced] Coords z_vector = geometry->geometry_parameters.p_box_storage->z_vector; ^ "./Laue_camera.c", line 10642: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Laue_camera.c", line 10704: warning: variable "rotated_nx" was declared but never referenced [declared_but_not_referenced] double rotated_nx, rotated_ny, rotated_nz; ^ "./Laue_camera.c", line 10704: warning: variable "rotated_ny" was declared but never referenced [declared_but_not_referenced] double rotated_nx, rotated_ny, rotated_nz; ^ "./Laue_camera.c", line 10704: warning: variable "rotated_nz" was declared but never referenced [declared_but_not_referenced] double rotated_nx, rotated_ny, rotated_nz; ^ "./Laue_camera.c", line 10925: warning: variable "output" was set but never used [set_but_not_used] int output = 0; ^ "./Laue_camera.c", line 11230: 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; ^ "./Laue_camera.c", line 11231: 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; ^ "./Laue_camera.c", line 11476: warning: statement is unreachable [code_is_unreachable] return 0; ^ "./Laue_camera.c", line 11267: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Laue_camera.c", line 11269: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./Laue_camera.c", line 11270: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./Laue_camera.c", line 11271: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./Laue_camera.c", line 11295: warning: variable "verbal" was declared but never referenced [declared_but_not_referenced] int verbal = 0; ^ "./Laue_camera.c", line 11304: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Laue_camera.c", line 11304: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Laue_camera.c", line 11306: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Laue_camera.c", line 11348: warning: variable "C1" was declared but never referenced [declared_but_not_referenced] int C1 = counter; ^ "./Laue_camera.c", line 11517: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./Laue_camera.c", line 11547: warning: variable "output" was set but never used [set_but_not_used] int output = 0; ^ "./Laue_camera.c", line 11566: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Laue_camera.c", line 11566: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Laue_camera.c", line 11567: warning: variable "UNION_EPSILON" was declared but never referenced [declared_but_not_referenced] double UNION_EPSILON = 0.0000001; ^ "./Laue_camera.c", line 11568: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Laue_camera.c", line 11805: warning: variable "rotated_coordinates" was declared but never referenced [declared_but_not_referenced] Coords rotated_coordinates; ^ "./Laue_camera.c", line 11971: warning: variable "y" was set but never used [set_but_not_used] double x, y, z, dt; ^ "./Laue_camera.c", line 12026: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Laue_camera.c", line 12103: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Laue_camera.c", line 12315: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Laue_camera.c", line 12413: warning: variable "solutions" was declared but never referenced [declared_but_not_referenced] int iterate,number_of_solutions,solutions,number_of_positions = 30; ^ "./Laue_camera.c", line 12604: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Laue_camera.c", line 12802: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Laue_camera.c", line 12803: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Laue_camera.c", line 13388: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Laue_camera.c", line 13389: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Laue_camera.c", line 13648: 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; ^ "./Laue_camera.c", line 13653: 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; ^ "./Laue_camera.c", line 13654: 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; ^ "./Laue_camera.c", line 13655: 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; ^ "./Laue_camera.c", line 13662: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Laue_camera.c", line 13663: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Laue_camera.c", line 13786: warning: variable "square_offset" was declared but never referenced [declared_but_not_referenced] double square_offset; ^ "./Laue_camera.c", line 14080: warning: variable "debug_dist" was set but never used [set_but_not_used] double debug_dist; ^ "./Laue_camera.c", line 14146: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Laue_camera.c", line 14333: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Laue_camera.c", line 14336: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Laue_camera.c", line 14493: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Laue_camera.c", line 14496: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Laue_camera.c", line 15494: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int mask_index,mask_mode,found_index,logic_ALL; ^ "./Laue_camera.c", line 15397: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,mask_volume_number,mask_index; ^ "./Laue_camera.c", line 15716: 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; ^ "./Laue_camera.c", line 15926: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,iterate2,found_index,I_index,I_volume; ^ "./Laue_camera.c", line 16087: warning: variable "string_output" was declared but never referenced [declared_but_not_referenced] char string_output[124]; ^ "./Laue_camera.c", line 16491: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,mask_index; ^ "./Laue_camera.c", line 17843: warning: missing return statement at end of non-void function "Single_crystal_physics_my" [implicit_return_from_non_void_function] }; ^ "./Laue_camera.c", line 17855: warning: variable "b1x" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Laue_camera.c", line 17855: warning: variable "b1y" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Laue_camera.c", line 17855: warning: variable "b1z" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Laue_camera.c", line 17856: warning: variable "b2x" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Laue_camera.c", line 17856: warning: variable "b2y" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Laue_camera.c", line 17856: warning: variable "b2z" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Laue_camera.c", line 17858: warning: variable "r" was declared but never referenced [declared_but_not_referenced] double adjust, r, sum; /* Temporaries */ ^ "./Laue_camera.c", line 17861: warning: variable "kix" was declared but never referenced [declared_but_not_referenced] double kix = k_initial[0],kiy = k_initial[1],kiz = k_initial[2]; ^ "./Laue_camera.c", line 17861: warning: variable "kiy" was declared but never referenced [declared_but_not_referenced] double kix = k_initial[0],kiy = k_initial[1],kiz = k_initial[2]; ^ "./Laue_camera.c", line 17861: warning: variable "kiz" was declared but never referenced [declared_but_not_referenced] double kix = k_initial[0],kiy = k_initial[1],kiz = k_initial[2]; ^ "./Laue_camera.c", line 18301: warning: variable "choice" was declared but never referenced [declared_but_not_referenced] enum surface choice = surface->eSurface; ^ "./Laue_camera.c", line 21107: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Laue_camera.c", line 21107: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Laue_camera.c", line 21134: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Laue_camera.c", line 21134: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Laue_camera.c", line 22655: 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) { ^ "./Laue_camera.c", line 22660: 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) { ^ "./Laue_camera.c", line 22669: 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) ^ "./Laue_camera.c", line 22695: 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) ^ "./Laue_camera.c", line 22698: 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; ^ "./Laue_camera.c", line 22698: 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; ^ "./Laue_camera.c", line 22698: 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; ^ "./Laue_camera.c", line 22698: 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; ^ "./Laue_camera.c", line 22698: 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; ^ "./Laue_camera.c", line 22698: 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; ^ "./Laue_camera.c", line 22758: 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) ^ "./Laue_camera.c", line 22888: 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, ^ "./Laue_camera.c", line 22932: 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, ^ "./Laue_camera.c", line 23053: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Laue_camera.c", line 23165: 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) ^ "./Laue_camera.c", line 23177: 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) ^ "./Laue_camera.c", line 23212: 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) ^ "./Laue_camera.c", line 23468: 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) { ^ "./Laue_camera.c", line 23474: 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) ^ "./Laue_camera.c", line 23965: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Laue_camera.c", line 24011: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Laue_camera.c", line 24058: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Laue_camera.c", line 24098: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Laue_camera.c", line 24177: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Laue_camera.c", line 24255: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Laue_camera.c", line 24307: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Laue_camera.c", line 24364: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Laue_camera.c", line 24953: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Laue_camera.c", line 25162: warning: variable "as" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Laue_camera.c", line 25162: warning: variable "bs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Laue_camera.c", line 25162: warning: variable "cs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Laue_camera.c", line 25163: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i=0; ^ "./Laue_camera.c", line 27379: warning: incompatible redefinition of macro "exit" (declared at line 645) [bad_macro_redef] #define exit(...) noprintf() ^ "./Laue_camera.c", line 27394: warning: Routine "class_Single_crystal_process_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Single_crystal_process *class_Single_crystal_process_trace(_class_Single_crystal_process *_comp, _class_particle *_particle) { ^ "./Laue_camera.c", line 27487: 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] _class_Progress_bar *class_Progress_bar_trace(_class_Progress_bar *_comp, _class_particle *_particle) { ^ "./Laue_camera.c", line 27577: 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] _class_Source_simple *class_Source_simple_trace(_class_Source_simple *_comp, _class_particle *_particle) { ^ "./Laue_camera.c", line 27680: warning: Routine "class_Slit_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Slit *class_Slit_trace(_class_Slit *_comp, _class_particle *_particle) { ^ "./Laue_camera.c", line 27725: warning: Routine "class_Union_master_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Union_master *class_Union_master_trace(_class_Union_master *_comp, _class_particle *_particle) { ^ "./Laue_camera.c", line 28395: warning: variable "physics_output" was set but never used [set_but_not_used] int physics_output; ^ "./Laue_camera.c", line 29255: warning: variable "q_qc_quadratic_diff" was declared but never referenced [declared_but_not_referenced] double q_qc_quadratic_diff; ^ "./Laue_camera.c", line 29288: warning: variable "theta2" was set but never used [set_but_not_used] double theta1, theta2; ^ "./Laue_camera.c", line 27898: warning: variable "start_weight" was set but never used [set_but_not_used] double start_weight; ^ "./Laue_camera.c", line 29815: warning: Routine "class_PSD_monitor_4PI_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_PSD_monitor_4PI *class_PSD_monitor_4PI_trace(_class_PSD_monitor_4PI *_comp, _class_particle *_particle) { ^ "./Laue_camera.c", line 29893: warning: Routine "class_Monitor_nD_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Monitor_nD *class_Monitor_nD_trace(_class_Monitor_nD *_comp, _class_particle *_particle) { ^ "./Laue_camera.c", line 30183: warning: Routine "class_PSDlin_monitor_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_PSDlin_monitor *class_PSDlin_monitor_trace(_class_PSDlin_monitor *_comp, _class_particle *_particle) { ^ "./Laue_camera.c", line 32837: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Laue_camera.c", line 32838: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Laue_camera.c", line 1522: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Laue_camera.c", line 2991: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 105, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 119, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 152, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 180, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 206, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 218, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 234, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 245, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1570, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1574, Generating acc routine seq Generating NVIDIA GPU code str_len: 1583, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4263, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4697, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4708, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4717, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4729, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4741, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4751, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4761, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4769, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4779, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4801, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4808, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4854, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4889, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4900, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4917, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4928, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4944, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4973, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4984, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4988, Generating acc routine seq Generating NVIDIA GPU code sort_absorb_last: 5023, Generating present(particles[:buffer_len],pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 5030, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5039, #pragma acc loop seq 5023, Generating implicit copy(lens[:]) [if not already present] 5030, Generating implicit firstprivate(ll,l) 5041, Accelerator restriction: induction variable live-out from loop: i 5042, Accelerator restriction: induction variable live-out from loop: i 5043, Accelerator restriction: induction variable live-out from loop: i 5044, Accelerator restriction: induction variable live-out from loop: i 5046, Accelerator restriction: induction variable live-out from loop: j 5047, Accelerator restriction: induction variable live-out from loop: j 5048, Accelerator restriction: induction variable live-out from loop: j 5049, Accelerator restriction: induction variable live-out from loop: j 5071, Generating present(pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 5075, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5078, #pragma acc loop seq 5071, Generating implicit copyin(lens[:]) [if not already present] Generating implicit copy(particles[:]) [if not already present] Generating implicit copyin(los[:]) [if not already present] 5078, Generating implicit firstprivate(l) 5095, Generating present(particles[:buffer_len]) Generating implicit firstprivate(accumlen,tidx,mult) Generating NVIDIA GPU code 5099, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5106, #pragma acc loop seq 5095, Local memory used for targetbuffer,sourcebuffer mccoordschange: 5165, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5196, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5213, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5312, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5396, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5462, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5539, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5811, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5823, Generating acc routine seq Generating NVIDIA GPU code _hash: 5855, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5896, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5907, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5912, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5920, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5928, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5935, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6613, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6653, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6713, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6730, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6845, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6900, Generating acc routine seq Generating NVIDIA GPU code distance_between: 8279, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code length_of_3vector: 8287, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code length_of_position_vector: 8291, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code coords_scalar_mult: 8302, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code on_int_list: 8317, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code print_1d_int_list: 8656, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code update_current_mask_intersect_status: 9154, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code make_tagging_tree_node: 9234, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code NVC++-S-1058-Call to variadic function not supported - fprintf (./Laue_camera.c: 9261) NVC++/x86-64 Linux 25.9-0: compilation completed with severe errors INFO: call to nvc failed with Command 'nvc -o ./Laue_camera.out ./Laue_camera.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 -DFUNNEL' returned non-zero exit status 2. ERROR: Compilation failed for ./Laue_camera.c using compiler nvc