INFO: No output directory specified (--dir) INFO: Using directory: "Sample_picture_replica_20240919_034804" INFO: Regenerating c-file: Sample_picture_replica.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./Sample_picture_replica.c Sample_picture_replica.instr Warning: DECLARE block contains 2 assignments (= sign). Move them into an INITIALIZE section. May fail at compile. CFLAGS= -I@MCCODE_LIB@/share/ -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 test_sample is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component test_sample -> GPU kernel from component detector ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./Sample_picture_replica.out DEBUG: CMD: nvc -o ./Sample_picture_replica.out ./Sample_picture_replica.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC -I/u/data/pkwi/McStas/mcstas/3.x-dev/share/ -DFUNNEL "./Sample_picture_replica.c", line 4486: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./Sample_picture_replica.c", line 4941: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] unsigned long randstate[7]; ^ "./Sample_picture_replica.c", line 4860: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./Sample_picture_replica.c", line 8180: warning: variable "output" was declared but never referenced [declared_but_not_referenced] struct tagging_tree_node_struct *output; ^ "./Sample_picture_replica.c", line 8704: warning: variable "permanent_list_length" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,permanent_list_length = 0; ^ "./Sample_picture_replica.c", line 8727: warning: variable "geometry_output" was set but never used [set_but_not_used] int geometry_output; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 315: warning: variable "x_vector" was declared but never referenced [declared_but_not_referenced] Coords x_vector = geometry->geometry_parameters.p_box_storage->x_vector; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 316: warning: variable "y_vector" was declared but never referenced [declared_but_not_referenced] Coords y_vector = geometry->geometry_parameters.p_box_storage->y_vector; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 317: warning: variable "z_vector" was declared but never referenced [declared_but_not_referenced] Coords z_vector = geometry->geometry_parameters.p_box_storage->z_vector; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 477: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 697: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 856: 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; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 857: 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; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 1132: warning: statement is unreachable [code_is_unreachable] return 0; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 891: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 893: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 894: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 895: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 919: warning: variable "verbal" was declared but never referenced [declared_but_not_referenced] int verbal = 0; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 928: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 928: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 930: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 979: warning: variable "C1" was declared but never referenced [declared_but_not_referenced] int C1 = counter; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 1146: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 1147: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 1148: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 1177: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 1235: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 1251: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 1251: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 1252: warning: variable "UNION_EPSILON" was declared but never referenced [declared_but_not_referenced] double UNION_EPSILON = 0.0000001; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 1253: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 1690: 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); ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 1679: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 1756: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 1963: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 2061: warning: variable "solutions" was declared but never referenced [declared_but_not_referenced] int iterate,number_of_solutions,solutions,number_of_positions = 30; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 2247: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 2440: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 2441: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 2975: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 2976: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 3375: 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); ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 3235: 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; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 3240: 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; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 3241: 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; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 3242: 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; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 3249: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 3250: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 3373: warning: variable "square_offset" was declared but never referenced [declared_but_not_referenced] double square_offset; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 3639: warning: variable "debug_dist" was set but never used [set_but_not_used] double debug_dist; ^ "/u/data/pkwi/McStas/mcstas/3.x-dev/share/Geometry_functions.c", line 3705: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Sample_picture_replica.c", line 8948: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Sample_picture_replica.c", line 8951: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Sample_picture_replica.c", line 9108: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Sample_picture_replica.c", line 9111: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Sample_picture_replica.c", line 10030: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int mask_index,mask_mode,found_index,logic_ALL; ^ "./Sample_picture_replica.c", line 9939: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,mask_volume_number,mask_index; ^ "./Sample_picture_replica.c", line 10242: 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; ^ "./Sample_picture_replica.c", line 10432: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,iterate2,found_index,I_index,I_volume; ^ "./Sample_picture_replica.c", line 10581: warning: variable "string_output" was declared but never referenced [declared_but_not_referenced] char string_output[124]; ^ "./Sample_picture_replica.c", line 10985: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,mask_index; ^ "./Sample_picture_replica.c", line 27439: 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; ^ "./Sample_picture_replica.c", line 27439: 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; ^ "./Sample_picture_replica.c", line 27439: 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; ^ "./Sample_picture_replica.c", line 27439: 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; ^ "./Sample_picture_replica.c", line 27439: 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; ^ "./Sample_picture_replica.c", line 27439: 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; ^ "./Sample_picture_replica.c", line 27796: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Sample_picture_replica.c", line 29044: warning: variable "count" is used before its value is set [used_before_set] for(line0=0; line0