INFO: No output directory specified (--dir) INFO: Using directory: "External_component_test_20241118_033133" INFO: Regenerating c-file: External_component_test.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./External_component_test.c External_component_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. WARNING: The parameter format of cylinder_sample_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 cylinder_sample_powder Component test_sample_after is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component test_sample_after -> GPU kernel from component m4pi ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./External_component_test.out DEBUG: CMD: nvc -o ./External_component_test.out ./External_component_test.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC -DFUNNEL "./External_component_test.c", line 4505: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./External_component_test.c", line 4960: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] unsigned long randstate[7]; ^ "./External_component_test.c", line 4879: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./External_component_test.c", line 8197: warning: variable "output" was declared but never referenced [declared_but_not_referenced] struct tagging_tree_node_struct *output; ^ "./External_component_test.c", line 8721: warning: variable "permanent_list_length" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,permanent_list_length = 0; ^ "./External_component_test.c", line 8744: warning: variable "geometry_output" was set but never used [set_but_not_used] int geometry_output; ^ "./External_component_test.c", line 9232: warning: variable "x_vector" was declared but never referenced [declared_but_not_referenced] Coords x_vector = geometry->geometry_parameters.p_box_storage->x_vector; ^ "./External_component_test.c", line 9233: warning: variable "y_vector" was declared but never referenced [declared_but_not_referenced] Coords y_vector = geometry->geometry_parameters.p_box_storage->y_vector; ^ "./External_component_test.c", line 9234: warning: variable "z_vector" was declared but never referenced [declared_but_not_referenced] Coords z_vector = geometry->geometry_parameters.p_box_storage->z_vector; ^ "./External_component_test.c", line 9394: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./External_component_test.c", line 9614: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./External_component_test.c", line 9773: 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; ^ "./External_component_test.c", line 9774: 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; ^ "./External_component_test.c", line 10049: warning: statement is unreachable [code_is_unreachable] return 0; ^ "./External_component_test.c", line 9808: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./External_component_test.c", line 9810: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./External_component_test.c", line 9811: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./External_component_test.c", line 9812: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./External_component_test.c", line 9836: warning: variable "verbal" was declared but never referenced [declared_but_not_referenced] int verbal = 0; ^ "./External_component_test.c", line 9845: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./External_component_test.c", line 9845: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./External_component_test.c", line 9847: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./External_component_test.c", line 9896: warning: variable "C1" was declared but never referenced [declared_but_not_referenced] int C1 = counter; ^ "./External_component_test.c", line 10063: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./External_component_test.c", line 10064: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./External_component_test.c", line 10065: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./External_component_test.c", line 10094: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./External_component_test.c", line 10152: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./External_component_test.c", line 10168: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./External_component_test.c", line 10168: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./External_component_test.c", line 10169: warning: variable "UNION_EPSILON" was declared but never referenced [declared_but_not_referenced] double UNION_EPSILON = 0.0000001; ^ "./External_component_test.c", line 10170: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./External_component_test.c", line 10607: 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); ^ "./External_component_test.c", line 10596: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./External_component_test.c", line 10673: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./External_component_test.c", line 10880: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./External_component_test.c", line 10978: warning: variable "solutions" was declared but never referenced [declared_but_not_referenced] int iterate,number_of_solutions,solutions,number_of_positions = 30; ^ "./External_component_test.c", line 11164: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./External_component_test.c", line 11357: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./External_component_test.c", line 11358: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./External_component_test.c", line 11892: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./External_component_test.c", line 11893: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./External_component_test.c", line 12292: 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); ^ "./External_component_test.c", line 12152: 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; ^ "./External_component_test.c", line 12157: 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; ^ "./External_component_test.c", line 12158: 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; ^ "./External_component_test.c", line 12159: 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; ^ "./External_component_test.c", line 12166: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./External_component_test.c", line 12167: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./External_component_test.c", line 12290: warning: variable "square_offset" was declared but never referenced [declared_but_not_referenced] double square_offset; ^ "./External_component_test.c", line 12556: warning: variable "debug_dist" was set but never used [set_but_not_used] double debug_dist; ^ "./External_component_test.c", line 12622: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./External_component_test.c", line 12808: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./External_component_test.c", line 12811: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./External_component_test.c", line 12968: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./External_component_test.c", line 12971: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./External_component_test.c", line 13890: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int mask_index,mask_mode,found_index,logic_ALL; ^ "./External_component_test.c", line 13799: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,mask_volume_number,mask_index; ^ "./External_component_test.c", line 14102: 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; ^ "./External_component_test.c", line 14292: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,iterate2,found_index,I_index,I_volume; ^ "./External_component_test.c", line 14441: warning: variable "string_output" was declared but never referenced [declared_but_not_referenced] char string_output[124]; ^ "./External_component_test.c", line 14845: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,mask_index; ^ "./External_component_test.c", line 17129: 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; ^ "./External_component_test.c", line 17129: 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; ^ "./External_component_test.c", line 17129: 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; ^ "./External_component_test.c", line 17129: 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; ^ "./External_component_test.c", line 17129: 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; ^ "./External_component_test.c", line 17129: 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; ^ "./External_component_test.c", line 17486: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./External_component_test.c", line 18734: warning: variable "count" is used before its value is set [used_before_set] for(line0=0; line0