INFO: No output directory specified (--dir) INFO: Using directory: "ILL_SALSA_20241121_014643" INFO: Regenerating c-file: ILL_SALSA.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./ILL_SALSA.c ILL_SALSA.instr Info: 'Al_window' is a contributed component. Info: 'Monochromator_bent' is a contributed component. Warning: DECLARE block contains 2 assignments (= sign). Move them into an INITIALIZE section. May fail at compile. WARNING: The parameter format of Al_pow is initialized using a static {,,,} vector. -> Such static vectors support literal numbers ONLY. -> Any vector use of variables or defines must happen via a DECLARE/INITIALIZE pointer. ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: Component Monochromator_0 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component Monochromator_0 Component Monochromator_1 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_2 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_3 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_4 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_5 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_6 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_7 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_8 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_9 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_10 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_11 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_12 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_13 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_14 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_15 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_16 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_17 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_18 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_19 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_20 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_21 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_22 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_23 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_24 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_25 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_26 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_27 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_28 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_29 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_30 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_31 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_32 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_33 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_34 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_35 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_36 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_37 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. Component Monochromator_38 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> GPU kCFLAGS= -DFUNNEL ernel from component arm_takeoff Component Sample_environment is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component Sample_environment -> GPU kernel from component stop ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./ILL_SALSA.out DEBUG: CMD: nvc -o ./ILL_SALSA.out ./ILL_SALSA.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC -DFUNNEL "./ILL_SALSA.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 " "./ILL_SALSA.c", line 4941: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] unsigned long randstate[7]; ^ "./ILL_SALSA.c", line 4860: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./ILL_SALSA.c", line 9032: warning: missing return statement at end of non-void function "sign" [implicit_return_from_non_void_function] } ^ "./ILL_SALSA.c", line 9150: warning: missing return statement at end of non-void function "stringToEnum" [implicit_return_from_non_void_function] } ^ "./ILL_SALSA.c", line 9604: warning: variable "entry_time" is used before its value is set [used_before_set] neutron->path_length[lamella] = neutron->exit_time[lamella] - entry_time; ^ "./ILL_SALSA.c", line 9581: warning: variable "exit_time" was declared but never referenced [declared_but_not_referenced] double entry_time, exit_time; ^ "./ILL_SALSA.c", line 9645: warning: variable "t0" was declared but never referenced [declared_but_not_referenced] double t0, inner_t1, outer_t1; ^ "./ILL_SALSA.c", line 9645: warning: variable "inner_t1" was declared but never referenced [declared_but_not_referenced] double t0, inner_t1, outer_t1; ^ "./ILL_SALSA.c", line 9645: warning: variable "outer_t1" was declared but never referenced [declared_but_not_referenced] double t0, inner_t1, outer_t1; ^ "./ILL_SALSA.c", line 9646: warning: variable "kinematic_reflectivity" was declared but never referenced [declared_but_not_referenced] double kinematic_reflectivity; ^ "./ILL_SALSA.c", line 9647: warning: variable "r" was declared but never referenced [declared_but_not_referenced] double r[3] = {neutron->r[0], neutron->r[1], neutron->r[2]}; ^ "./ILL_SALSA.c", line 9648: warning: variable "intersected" was declared but never referenced [declared_but_not_referenced] int intersected; ^ "./ILL_SALSA.c", line 9649: warning: variable "transposed_x" was declared but never referenced [declared_but_not_referenced] double transposed_x; ^ "./ILL_SALSA.c", line 11057: warning: variable "output" was declared but never referenced [declared_but_not_referenced] struct tagging_tree_node_struct *output; ^ "./ILL_SALSA.c", line 11581: warning: variable "permanent_list_length" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,permanent_list_length = 0; ^ "./ILL_SALSA.c", line 11604: warning: variable "geometry_output" was set but never used [set_but_not_used] int geometry_output; ^ "./ILL_SALSA.c", line 12092: warning: variable "x_vector" was declared but never referenced [declared_but_not_referenced] Coords x_vector = geometry->geometry_parameters.p_box_storage->x_vector; ^ "./ILL_SALSA.c", line 12093: warning: variable "y_vector" was declared but never referenced [declared_but_not_referenced] Coords y_vector = geometry->geometry_parameters.p_box_storage->y_vector; ^ "./ILL_SALSA.c", line 12094: warning: variable "z_vector" was declared but never referenced [declared_but_not_referenced] Coords z_vector = geometry->geometry_parameters.p_box_storage->z_vector; ^ "./ILL_SALSA.c", line 12254: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./ILL_SALSA.c", line 12474: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./ILL_SALSA.c", line 12633: 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; ^ "./ILL_SALSA.c", line 12634: 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; ^ "./ILL_SALSA.c", line 12909: warning: statement is unreachable [code_is_unreachable] return 0; ^ "./ILL_SALSA.c", line 12668: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./ILL_SALSA.c", line 12670: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./ILL_SALSA.c", line 12671: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./ILL_SALSA.c", line 12672: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./ILL_SALSA.c", line 12696: warning: variable "verbal" was declared but never referenced [declared_but_not_referenced] int verbal = 0; ^ "./ILL_SALSA.c", line 12705: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./ILL_SALSA.c", line 12705: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./ILL_SALSA.c", line 12707: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./ILL_SALSA.c", line 12756: warning: variable "C1" was declared but never referenced [declared_but_not_referenced] int C1 = counter; ^ "./ILL_SALSA.c", line 12923: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./ILL_SALSA.c", line 12924: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./ILL_SALSA.c", line 12925: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./ILL_SALSA.c", line 12954: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./ILL_SALSA.c", line 13012: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./ILL_SALSA.c", line 13028: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./ILL_SALSA.c", line 13028: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./ILL_SALSA.c", line 13029: warning: variable "UNION_EPSILON" was declared but never referenced [declared_but_not_referenced] double UNION_EPSILON = 0.0000001; ^ "./ILL_SALSA.c", line 13030: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./ILL_SALSA.c", line 13467: 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); ^ "./ILL_SALSA.c", line 13456: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./ILL_SALSA.c", line 13533: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./ILL_SALSA.c", line 13740: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./ILL_SALSA.c", line 13838: warning: variable "solutions" was declared but never referenced [declared_but_not_referenced] int iterate,number_of_solutions,solutions,number_of_positions = 30; ^ "./ILL_SALSA.c", line 14024: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./ILL_SALSA.c", line 14217: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./ILL_SALSA.c", line 14218: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./ILL_SALSA.c", line 14752: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./ILL_SALSA.c", line 14753: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./ILL_SALSA.c", line 15152: 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); ^ "./ILL_SALSA.c", line 15012: 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; ^ "./ILL_SALSA.c", line 15017: 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; ^ "./ILL_SALSA.c", line 15018: 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; ^ "./ILL_SALSA.c", line 15019: 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; ^ "./ILL_SALSA.c", line 15026: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./ILL_SALSA.c", line 15027: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./ILL_SALSA.c", line 15150: warning: variable "square_offset" was declared but never referenced [declared_but_not_referenced] double square_offset; ^ "./ILL_SALSA.c", line 15416: warning: variable "debug_dist" was set but never used [set_but_not_used] double debug_dist; ^ "./ILL_SALSA.c", line 15482: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./ILL_SALSA.c", line 15668: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./ILL_SALSA.c", line 15671: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./ILL_SALSA.c", line 15828: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./ILL_SALSA.c", line 15831: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./ILL_SALSA.c", line 16750: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int mask_index,mask_mode,found_index,logic_ALL; ^ "./ILL_SALSA.c", line 16659: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,mask_volume_number,mask_index; ^ "./ILL_SALSA.c", line 16962: 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; ^ "./ILL_SALSA.c", line 17152: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,iterate2,found_index,I_index,I_volume; ^ "./ILL_SALSA.c", line 17301: warning: variable "string_output" was declared but never referenced [declared_but_not_referenced] char string_output[124]; ^ "./ILL_SALSA.c", line 17705: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,mask_index; ^ "./ILL_SALSA.c", line 18482: 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; ^ "./ILL_SALSA.c", line 18482: 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; ^ "./ILL_SALSA.c", line 18482: 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; ^ "./ILL_SALSA.c", line 18482: 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; ^ "./ILL_SALSA.c", line 18482: 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; ^ "./ILL_SALSA.c", line 18482: 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; ^ "./ILL_SALSA.c", line 18839: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./ILL_SALSA.c", line 20087: warning: variable "count" is used before its value is set [used_before_set] for(line0=0; line0