INFO: No output directory specified (--dir) INFO: Using directory: "Unit_test_conditional_PSD_20241204_061607" INFO: Regenerating c-file: Unit_test_conditional_PSD.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./Unit_test_conditional_PSD.c Unit_test_conditional_PSD.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 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 master is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component master -> GPU kernel from component transmission ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./Unit_test_conditional_PSD.out DEBUG: CMD: nvc -o ./Unit_test_conditional_PSD.out ./Unit_test_conditional_PSD.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC -DFUNNEL "./Unit_test_conditional_PSD.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 " "./Unit_test_conditional_PSD.c", line 4941: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] unsigned long randstate[7]; ^ "./Unit_test_conditional_PSD.c", line 4860: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./Unit_test_conditional_PSD.c", line 8178: warning: variable "output" was declared but never referenced [declared_but_not_referenced] struct tagging_tree_node_struct *output; ^ "./Unit_test_conditional_PSD.c", line 8702: warning: variable "permanent_list_length" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,permanent_list_length = 0; ^ "./Unit_test_conditional_PSD.c", line 8725: warning: variable "geometry_output" was set but never used [set_but_not_used] int geometry_output; ^ "./Unit_test_conditional_PSD.c", line 9213: warning: variable "x_vector" was declared but never referenced [declared_but_not_referenced] Coords x_vector = geometry->geometry_parameters.p_box_storage->x_vector; ^ "./Unit_test_conditional_PSD.c", line 9214: warning: variable "y_vector" was declared but never referenced [declared_but_not_referenced] Coords y_vector = geometry->geometry_parameters.p_box_storage->y_vector; ^ "./Unit_test_conditional_PSD.c", line 9215: warning: variable "z_vector" was declared but never referenced [declared_but_not_referenced] Coords z_vector = geometry->geometry_parameters.p_box_storage->z_vector; ^ "./Unit_test_conditional_PSD.c", line 9375: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Unit_test_conditional_PSD.c", line 9595: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./Unit_test_conditional_PSD.c", line 9754: 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; ^ "./Unit_test_conditional_PSD.c", line 9755: 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; ^ "./Unit_test_conditional_PSD.c", line 10030: warning: statement is unreachable [code_is_unreachable] return 0; ^ "./Unit_test_conditional_PSD.c", line 9789: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Unit_test_conditional_PSD.c", line 9791: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./Unit_test_conditional_PSD.c", line 9792: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./Unit_test_conditional_PSD.c", line 9793: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./Unit_test_conditional_PSD.c", line 9817: warning: variable "verbal" was declared but never referenced [declared_but_not_referenced] int verbal = 0; ^ "./Unit_test_conditional_PSD.c", line 9826: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Unit_test_conditional_PSD.c", line 9826: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Unit_test_conditional_PSD.c", line 9828: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Unit_test_conditional_PSD.c", line 9877: warning: variable "C1" was declared but never referenced [declared_but_not_referenced] int C1 = counter; ^ "./Unit_test_conditional_PSD.c", line 10044: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./Unit_test_conditional_PSD.c", line 10045: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./Unit_test_conditional_PSD.c", line 10046: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./Unit_test_conditional_PSD.c", line 10075: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Unit_test_conditional_PSD.c", line 10133: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./Unit_test_conditional_PSD.c", line 10149: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Unit_test_conditional_PSD.c", line 10149: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Unit_test_conditional_PSD.c", line 10150: warning: variable "UNION_EPSILON" was declared but never referenced [declared_but_not_referenced] double UNION_EPSILON = 0.0000001; ^ "./Unit_test_conditional_PSD.c", line 10151: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Unit_test_conditional_PSD.c", line 10588: 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); ^ "./Unit_test_conditional_PSD.c", line 10577: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Unit_test_conditional_PSD.c", line 10654: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Unit_test_conditional_PSD.c", line 10861: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Unit_test_conditional_PSD.c", line 10959: warning: variable "solutions" was declared but never referenced [declared_but_not_referenced] int iterate,number_of_solutions,solutions,number_of_positions = 30; ^ "./Unit_test_conditional_PSD.c", line 11145: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Unit_test_conditional_PSD.c", line 11338: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Unit_test_conditional_PSD.c", line 11339: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Unit_test_conditional_PSD.c", line 11873: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Unit_test_conditional_PSD.c", line 11874: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Unit_test_conditional_PSD.c", line 12273: 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); ^ "./Unit_test_conditional_PSD.c", line 12133: 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; ^ "./Unit_test_conditional_PSD.c", line 12138: 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; ^ "./Unit_test_conditional_PSD.c", line 12139: 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; ^ "./Unit_test_conditional_PSD.c", line 12140: 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; ^ "./Unit_test_conditional_PSD.c", line 12147: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Unit_test_conditional_PSD.c", line 12148: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Unit_test_conditional_PSD.c", line 12271: warning: variable "square_offset" was declared but never referenced [declared_but_not_referenced] double square_offset; ^ "./Unit_test_conditional_PSD.c", line 12537: warning: variable "debug_dist" was set but never used [set_but_not_used] double debug_dist; ^ "./Unit_test_conditional_PSD.c", line 12603: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Unit_test_conditional_PSD.c", line 12789: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Unit_test_conditional_PSD.c", line 12792: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Unit_test_conditional_PSD.c", line 12949: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Unit_test_conditional_PSD.c", line 12952: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Unit_test_conditional_PSD.c", line 13871: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int mask_index,mask_mode,found_index,logic_ALL; ^ "./Unit_test_conditional_PSD.c", line 13780: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,mask_volume_number,mask_index; ^ "./Unit_test_conditional_PSD.c", line 14083: 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; ^ "./Unit_test_conditional_PSD.c", line 14273: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,iterate2,found_index,I_index,I_volume; ^ "./Unit_test_conditional_PSD.c", line 14422: warning: variable "string_output" was declared but never referenced [declared_but_not_referenced] char string_output[124]; ^ "./Unit_test_conditional_PSD.c", line 14826: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,mask_index; ^ "./Unit_test_conditional_PSD.c", line 17172: 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; ^ "./Unit_test_conditional_PSD.c", line 17172: 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; ^ "./Unit_test_conditional_PSD.c", line 17172: 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; ^ "./Unit_test_conditional_PSD.c", line 17172: 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; ^ "./Unit_test_conditional_PSD.c", line 17172: 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; ^ "./Unit_test_conditional_PSD.c", line 17172: 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; ^ "./Unit_test_conditional_PSD.c", line 17529: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Unit_test_conditional_PSD.c", line 18777: warning: variable "count" is used before its value is set [used_before_set] for(line0=0; line0