INFO: No output directory specified (--dir) INFO: Using directory: "Single_crystal_validation_20241118_035305" INFO: Regenerating c-file: Single_crystal_validation.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./Single_crystal_validation.c Single_crystal_validation.instr Warning: DECLARE block contains 2 assignments (= sign). Move them into an INITIALIZE section. May fail at compile. CFLAGS= -DFUNNEL WARNING: The parameter mosaic_AB of Single_crystal_test_process 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 mosaic_AB of sample 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 sample ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./Single_crystal_validation.out DEBUG: CMD: nvc -o ./Single_crystal_validation.out ./Single_crystal_validation.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC -DFUNNEL "./Single_crystal_validation.c", line 4493: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./Single_crystal_validation.c", line 4948: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] unsigned long randstate[7]; ^ "./Single_crystal_validation.c", line 4867: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./Single_crystal_validation.c", line 8228: warning: variable "output" was declared but never referenced [declared_but_not_referenced] struct tagging_tree_node_struct *output; ^ "./Single_crystal_validation.c", line 8752: warning: variable "permanent_list_length" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,permanent_list_length = 0; ^ "./Single_crystal_validation.c", line 8775: warning: variable "geometry_output" was set but never used [set_but_not_used] int geometry_output; ^ "./Single_crystal_validation.c", line 9263: warning: variable "x_vector" was declared but never referenced [declared_but_not_referenced] Coords x_vector = geometry->geometry_parameters.p_box_storage->x_vector; ^ "./Single_crystal_validation.c", line 9264: warning: variable "y_vector" was declared but never referenced [declared_but_not_referenced] Coords y_vector = geometry->geometry_parameters.p_box_storage->y_vector; ^ "./Single_crystal_validation.c", line 9265: warning: variable "z_vector" was declared but never referenced [declared_but_not_referenced] Coords z_vector = geometry->geometry_parameters.p_box_storage->z_vector; ^ "./Single_crystal_validation.c", line 9425: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Single_crystal_validation.c", line 9645: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./Single_crystal_validation.c", line 9804: 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; ^ "./Single_crystal_validation.c", line 9805: 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; ^ "./Single_crystal_validation.c", line 10080: warning: statement is unreachable [code_is_unreachable] return 0; ^ "./Single_crystal_validation.c", line 9839: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Single_crystal_validation.c", line 9841: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./Single_crystal_validation.c", line 9842: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./Single_crystal_validation.c", line 9843: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./Single_crystal_validation.c", line 9867: warning: variable "verbal" was declared but never referenced [declared_but_not_referenced] int verbal = 0; ^ "./Single_crystal_validation.c", line 9876: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Single_crystal_validation.c", line 9876: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Single_crystal_validation.c", line 9878: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Single_crystal_validation.c", line 9927: warning: variable "C1" was declared but never referenced [declared_but_not_referenced] int C1 = counter; ^ "./Single_crystal_validation.c", line 10094: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./Single_crystal_validation.c", line 10095: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./Single_crystal_validation.c", line 10096: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./Single_crystal_validation.c", line 10125: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Single_crystal_validation.c", line 10183: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./Single_crystal_validation.c", line 10199: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Single_crystal_validation.c", line 10199: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Single_crystal_validation.c", line 10200: warning: variable "UNION_EPSILON" was declared but never referenced [declared_but_not_referenced] double UNION_EPSILON = 0.0000001; ^ "./Single_crystal_validation.c", line 10201: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Single_crystal_validation.c", line 10638: 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); ^ "./Single_crystal_validation.c", line 10627: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Single_crystal_validation.c", line 10704: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Single_crystal_validation.c", line 10911: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Single_crystal_validation.c", line 11009: warning: variable "solutions" was declared but never referenced [declared_but_not_referenced] int iterate,number_of_solutions,solutions,number_of_positions = 30; ^ "./Single_crystal_validation.c", line 11195: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Single_crystal_validation.c", line 11388: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Single_crystal_validation.c", line 11389: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Single_crystal_validation.c", line 11923: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Single_crystal_validation.c", line 11924: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Single_crystal_validation.c", line 12323: 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); ^ "./Single_crystal_validation.c", line 12183: 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; ^ "./Single_crystal_validation.c", line 12188: 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; ^ "./Single_crystal_validation.c", line 12189: 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; ^ "./Single_crystal_validation.c", line 12190: 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; ^ "./Single_crystal_validation.c", line 12197: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Single_crystal_validation.c", line 12198: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Single_crystal_validation.c", line 12321: warning: variable "square_offset" was declared but never referenced [declared_but_not_referenced] double square_offset; ^ "./Single_crystal_validation.c", line 12587: warning: variable "debug_dist" was set but never used [set_but_not_used] double debug_dist; ^ "./Single_crystal_validation.c", line 12653: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Single_crystal_validation.c", line 12839: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Single_crystal_validation.c", line 12842: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Single_crystal_validation.c", line 12999: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Single_crystal_validation.c", line 13002: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Single_crystal_validation.c", line 13921: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int mask_index,mask_mode,found_index,logic_ALL; ^ "./Single_crystal_validation.c", line 13830: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,mask_volume_number,mask_index; ^ "./Single_crystal_validation.c", line 14133: 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; ^ "./Single_crystal_validation.c", line 14323: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,iterate2,found_index,I_index,I_volume; ^ "./Single_crystal_validation.c", line 14472: warning: variable "string_output" was declared but never referenced [declared_but_not_referenced] char string_output[124]; ^ "./Single_crystal_validation.c", line 14876: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,mask_index; ^ "./Single_crystal_validation.c", line 17155: 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; ^ "./Single_crystal_validation.c", line 17155: 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; ^ "./Single_crystal_validation.c", line 17155: 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; ^ "./Single_crystal_validation.c", line 17155: 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; ^ "./Single_crystal_validation.c", line 17155: 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; ^ "./Single_crystal_validation.c", line 17155: 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; ^ "./Single_crystal_validation.c", line 17512: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Single_crystal_validation.c", line 19124: warning: missing return statement at end of non-void function "Single_crystal_physics_my" [implicit_return_from_non_void_function] }; ^ "./Single_crystal_validation.c", line 19136: warning: variable "b1x" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 19136: warning: variable "b1y" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 19136: warning: variable "b1z" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 19137: warning: variable "b2x" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 19137: warning: variable "b2y" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 19137: warning: variable "b2z" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 19139: warning: variable "r" was declared but never referenced [declared_but_not_referenced] double adjust, r, sum; /* Temporaries */ ^ "./Single_crystal_validation.c", line 19142: 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]; ^ "./Single_crystal_validation.c", line 19142: 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]; ^ "./Single_crystal_validation.c", line 19142: 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]; ^ "./Single_crystal_validation.c", line 20429: warning: return value type does not match the function type [bad_return_value_type] if(!ext || ext == infile) return infile; ^ "./Single_crystal_validation.c", line 20438: warning: return value type does not match the function type [bad_return_value_type] && strcasecmp(ext, "res")) return infile; ^ "./Single_crystal_validation.c", line 20441: warning: return value type does not match the function type [bad_return_value_type] if (!OUTFILE) return infile; ^ "./Single_crystal_validation.c", line 20931: warning: variable "jglobal" was declared but never referenced [declared_but_not_referenced] int jglobal=-1; ^ "./Single_crystal_validation.c", line 20932: warning: variable "coherent_refl" was set but never used [set_but_not_used] double coherent_refl,coherent_xsect; ^ "./Single_crystal_validation.c", line 20932: warning: variable "coherent_xsect" was set but never used [set_but_not_used] double coherent_refl,coherent_xsect; ^ "./Single_crystal_validation.c", line 23295: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Single_crystal_validation.c", line 23295: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Single_crystal_validation.c", line 23322: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Single_crystal_validation.c", line 23322: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Single_crystal_validation.c", line 24338: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Single_crystal_validation.c", line 24334: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Single_crystal_validation.c", line 24427: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Single_crystal_validation.c", line 24379: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Single_crystal_validation.c", line 24483: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Single_crystal_validation.c", line 24468: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Single_crystal_validation.c", line 24540: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Single_crystal_validation.c", line 24525: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Single_crystal_validation.c", line 24594: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Single_crystal_validation.c", line 24582: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Single_crystal_validation.c", line 24654: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Single_crystal_validation.c", line 24636: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Single_crystal_validation.c", line 24696: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Single_crystal_validation.c", line 24754: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./Single_crystal_validation.c", line 24830: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./Single_crystal_validation.c", line 24915: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./Single_crystal_validation.c", line 25000: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./Single_crystal_validation.c", line 25063: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./Single_crystal_validation.c", line 25159: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./Single_crystal_validation.c", line 25219: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./Single_crystal_validation.c", line 25321: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./Single_crystal_validation.c", line 25386: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./Single_crystal_validation.c", line 25454: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Single_crystal_validation.c", line 25451: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./Single_crystal_validation.c", line 25593: warning: variable "as" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Single_crystal_validation.c", line 25593: warning: variable "bs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Single_crystal_validation.c", line 25593: warning: variable "cs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Single_crystal_validation.c", line 25594: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i=0; ^ "./Single_crystal_validation.c", line 27638: warning: variable "as" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Single_crystal_validation.c", line 27638: warning: variable "bs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Single_crystal_validation.c", line 27638: warning: variable "cs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Single_crystal_validation.c", line 27639: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i=0; ^ "./Single_crystal_validation.c", line 29041: warning: variable "physics_output" was set but never used [set_but_not_used] int physics_output; ^ "./Single_crystal_validation.c", line 30042: warning: variable "rho_x" was declared but never referenced [declared_but_not_referenced] double rho_x, rho_y, rho_z; /* the vector ki - tau */ ^ "./Single_crystal_validation.c", line 30042: warning: variable "rho_y" was declared but never referenced [declared_but_not_referenced] double rho_x, rho_y, rho_z; /* the vector ki - tau */ ^ "./Single_crystal_validation.c", line 30042: warning: variable "rho_z" was declared but never referenced [declared_but_not_referenced] double rho_x, rho_y, rho_z; /* the vector ki - tau */ ^ "./Single_crystal_validation.c", line 30043: warning: variable "rho" was declared but never referenced [declared_but_not_referenced] double rho; ^ "./Single_crystal_validation.c", line 30044: warning: variable "diff" was declared but never referenced [declared_but_not_referenced] double diff; /* Deviation from Bragg condition */ ^ "./Single_crystal_validation.c", line 30045: warning: variable "ox" was declared but never referenced [declared_but_not_referenced] double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./Single_crystal_validation.c", line 30045: warning: variable "oy" was declared but never referenced [declared_but_not_referenced] double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./Single_crystal_validation.c", line 30045: warning: variable "oz" was declared but never referenced [declared_but_not_referenced] double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./Single_crystal_validation.c", line 30046: warning: variable "b1x" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 30046: warning: variable "b1y" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 30046: warning: variable "b1z" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 30047: warning: variable "b2x" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 30047: warning: variable "b2y" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 30047: warning: variable "b2z" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 30048: warning: variable "n11" was declared but never referenced [declared_but_not_referenced] double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./Single_crystal_validation.c", line 30048: warning: variable "n12" was declared but never referenced [declared_but_not_referenced] double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./Single_crystal_validation.c", line 30048: warning: variable "n22" was declared but never referenced [declared_but_not_referenced] double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./Single_crystal_validation.c", line 30049: warning: variable "det_N" was declared but never referenced [declared_but_not_referenced] double det_N; /* Determinant of N */ ^ "./Single_crystal_validation.c", line 30050: warning: variable "inv_n11" was declared but never referenced [declared_but_not_referenced] double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./Single_crystal_validation.c", line 30050: warning: variable "inv_n12" was declared but never referenced [declared_but_not_referenced] double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./Single_crystal_validation.c", line 30050: warning: variable "inv_n22" was declared but never referenced [declared_but_not_referenced] double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./Single_crystal_validation.c", line 30051: warning: variable "l11" was declared but never referenced [declared_but_not_referenced] double l11, l12, l22; /* Cholesky decomposition L of 1/2*inv(N) */ ^ "./Single_crystal_validation.c", line 30051: warning: variable "l12" was declared but never referenced [declared_but_not_referenced] double l11, l12, l22; /* Cholesky decomposition L of 1/2*inv(N) */ ^ "./Single_crystal_validation.c", line 30051: warning: variable "l22" was declared but never referenced [declared_but_not_referenced] double l11, l12, l22; /* Cholesky decomposition L of 1/2*inv(N) */ ^ "./Single_crystal_validation.c", line 30052: warning: variable "det_L" was declared but never referenced [declared_but_not_referenced] double det_L; /* Determinant of L */ ^ "./Single_crystal_validation.c", line 30053: warning: variable "Bt_D_O_x" was declared but never referenced [declared_but_not_referenced] double Bt_D_O_x, Bt_D_O_y; /* Temporaries */ ^ "./Single_crystal_validation.c", line 30053: warning: variable "Bt_D_O_y" was declared but never referenced [declared_but_not_referenced] double Bt_D_O_x, Bt_D_O_y; /* Temporaries */ ^ "./Single_crystal_validation.c", line 30054: warning: variable "y0x" was declared but never referenced [declared_but_not_referenced] double y0x, y0y; /* Center of 2D Gauss in plane coordinates */ ^ "./Single_crystal_validation.c", line 30054: warning: variable "y0y" was declared but never referenced [declared_but_not_referenced] double y0x, y0y; /* Center of 2D Gauss in plane coordinates */ ^ "./Single_crystal_validation.c", line 30055: warning: variable "alpha" was declared but never referenced [declared_but_not_referenced] double alpha; /* Offset of 2D Gauss center from 3D center */ ^ "./Single_crystal_validation.c", line 30062: warning: variable "tot_xsect" was declared but never referenced [declared_but_not_referenced] double tot_xsect, tot_xlen; /* Total cross section and length */ ^ "./Single_crystal_validation.c", line 30069: warning: variable "theta" was declared but never referenced [declared_but_not_referenced] double theta, phi; /* rotation angles for curved lattice option */ ^ "./Single_crystal_validation.c", line 30069: warning: variable "phi" was declared but never referenced [declared_but_not_referenced] double theta, phi; /* rotation angles for curved lattice option */ ^ "./Single_crystal_validation.c", line 30078: warning: variable "type" was set but never used [set_but_not_used] char type; /* type of last event: t=transmit,c=coherent or i=incoherent */ ^ "./Single_crystal_validation.c", line 33986: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Single_crystal_validation.c", line 33987: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Single_crystal_validation.c", line 1502: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Single_crystal_validation.c", line 2905: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 90, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 104, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 137, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 162, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 185, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 196, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 205, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 216, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1549, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1553, Generating acc routine seq Generating NVIDIA GPU code str_len: 1562, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4114, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4545, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4556, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4565, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4577, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4589, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4599, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4609, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4617, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4627, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4649, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4656, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4702, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4737, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4748, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4765, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4776, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4792, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4821, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4832, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4836, Generating acc routine seq Generating NVIDIA GPU code sort_absorb_last: 4871, Generating present(particles[:buffer_len],pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 4878, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 4887, #pragma acc loop seq 4871, Generating implicit copy(lens[:]) [if not already present] 4878, Generating implicit firstprivate(ll,l) 4889, Accelerator restriction: induction variable live-out from loop: i 4890, Accelerator restriction: induction variable live-out from loop: i 4891, Accelerator restriction: induction variable live-out from loop: i 4892, Accelerator restriction: induction variable live-out from loop: i 4894, Accelerator restriction: induction variable live-out from loop: j 4895, Accelerator restriction: induction variable live-out from loop: j 4896, Accelerator restriction: induction variable live-out from loop: j 4897, Accelerator restriction: induction variable live-out from loop: j 4919, Generating present(pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 4923, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 4926, #pragma acc loop seq 4919, Generating implicit copyin(lens[:]) [if not already present] Generating implicit copy(particles[:]) [if not already present] Generating implicit copyin(los[:]) [if not already present] 4926, Generating implicit firstprivate(l) 4943, Generating present(particles[:buffer_len]) Generating implicit firstprivate(accumlen,tidx,mult) Generating NVIDIA GPU code 4947, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 4954, #pragma acc loop seq 4943, Local memory used for targetbuffer,sourcebuffer mccoordschange: 5013, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5044, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5061, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5160, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5244, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5310, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5387, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5659, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5669, Generating acc routine seq Generating NVIDIA GPU code _hash: 5695, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5736, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5747, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5752, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5760, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5768, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5775, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6434, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6470, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6530, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6547, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6662, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6717, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 16209, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 16277, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 16356, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 16824, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 16840, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 16858, Generating acc routine seq Generating NVIDIA GPU code off_F: 17112, Generating acc routine seq Generating NVIDIA GPU code off_sign: 17117, Generating acc routine seq Generating NVIDIA GPU code off_normal: 17127, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 17153, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 17216, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 17347, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 17392, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 17509, Generating acc routine seq Generating NVIDIA GPU code off_compare: 17627, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 17639, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 17674, Generating acc routine seq Generating NVIDIA GPU code Min_int: 17925, Generating acc routine seq Generating NVIDIA GPU code merge: 17932, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 18036, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 18051, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 18105, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 18222, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 18244, Generating acc routine seq Generating NVIDIA GPU code SX_list_compare: 20405, Generating acc routine seq Generating NVIDIA GPU code hkl_search: 20921, Generating acc routine seq Generating NVIDIA GPU code hkl_select: 21033, Generating acc routine seq Generating NVIDIA GPU code randrotate: 21048, Generating acc routine seq Generating NVIDIA GPU code randderotate: 21056, Generating acc routine seq Generating NVIDIA GPU code PGrotate: 21064, Generating acc routine seq Generating NVIDIA GPU code PGderotate: 21072, Generating acc routine seq Generating NVIDIA GPU code vec_rotate_2d: 21083, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 22291, Generating acc routine seq Generating NVIDIA GPU code init: 28147, Generating update device(_det_var,_PSDlin_transmission_transmitted_var,_Banana_monitor_var,_stop_var,_Incoherent_process_var,_slit_var,_sample_var,_Union_logger_2DQ_incoherent_var,_Single_crystal_test_process_var,_Union_logger_2DQ_crystal_var,_test_sample_var,_test_material_var,_instrument_var,_cylinder_sample_union_var,_Origin_var,_PSDlin_transmission_scattered_var,_source_var,_init_var) class_Single_crystal_process_trace: 28190, Generating acc routine seq Generating NVIDIA GPU code class_Progress_bar_trace: 28282, Generating acc routine seq Generating NVIDIA GPU code class_Source_simple_trace: 28372, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 28475, Generating acc routine seq Generating NVIDIA GPU code class_Single_crystal_trace: 29984, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_4PI_trace: 30533, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 30611, Generating acc routine seq Generating NVIDIA GPU code class_PSDlin_monitor_trace: 30901, Generating acc routine seq Generating NVIDIA GPU code raytrace_all_funnel: 31376, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 31380, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 31376, Local memory used for .inl_particle_38144,.inl_.inl_mcneutron_0_38159,.inl_.X3155_38161,.inl_.inl_.X3364_15_38160 31380, Generating implicit firstprivate(seed,_particle) 31390, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 31395, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 31390, Local memory used for .inl_.inl_c_1926_38312,.inl_.inl_.inl_b_1900_1932_38317,.inl_.inl_.inl_.X3329_1899_1931_38316,.inl_.inl_b_1922_38311,.inl_.inl_c_1915_38301,.inl_.inl_.inl_b_1900_1921_38306,.inl_.inl_.inl_.X3329_1899_1920_38305,.inl_.inl_b_1911_38300,.inl_.inl_.X3313_1910_38295,.inl_.inl_c_1907_38294,.inl_c_38325,.inl_.inl_b_1906_38292,.inl_.inl_.X3329_1905_38291,.inl_b_38284,.inl_.X3312_38283,.inl_.X3313_38278,.inl_c_38286,.inl_.X3311_38274,.inl_a_38270,.inl_.inl_c_1926_38260,.inl_.inl_.inl_b_1900_1932_38265,.inl_.inl_.inl_.X3329_1899_1931_38264,.inl_.inl_b_1922_38259,.inl_.inl_c_1915_38249,.inl_.inl_.inl_b_1900_1921_38254,.inl_.inl_.inl_.X3329_1899_1920_38253,.inl_.inl_b_1911_38248,.inl_.inl_.X3313_1910_38243,.inl_.inl_c_1907_38242,.inl_c_38275,.inl_.inl_b_1906_38240,.inl_.inl_.X3329_1905_38239,.inl_b_38232,.inl_.X3312_38231,.inl_.X3313_38226,.inl_c_38234,.inl_.X3311_38222,.inl_a_38218,.inl_.inl_c_1926_38208,.inl_.inl_.inl_b_1900_1932_38213,.inl_.inl_.inl_.X3329_1899_1931_38212,.inl_.inl_b_1922_38207,.inl_.inl_c_1915_38197,.inl_.inl_.inl_b_1900_1921_38202,.inl_.inl_.inl_.X3329_1899_1920_38201,.inl_.inl_b_1911_38196,.inl_.inl_.X3313_1910_38191,.inl_.inl_c_1907_38190,.inl_c_38223,.inl_.inl_b_1906_38188,.inl_.inl_.X3329_1905_38187,.inl_b_38180,.inl_.X3312_38179,.inl_.X3313_38174,.inl_c_38182,.inl_.X3311_38170,.inl_a_38166,_particle_save,.inl_c_38336,.inl_.inl_c_1915_38351,.inl_.inl_.inl_b_1900_1921_38356,.inl_.inl_.inl_.X3329_1899_1920_38355,.inl_.inl_b_1911_38350,.inl_.inl_c_1907_38344,.inl_.inl_.inl_.X3329_1899_1931_38366,.inl_.inl_.X3329_1905_38341,.inl_.inl_b_1906_38342,.inl_.X3313_38328,.inl_.inl_b_1922_38361,.inl_c_38171,.inl_.inl_.inl_b_1900_1932_38367,.inl_.inl_.X3313_1910_38345,.inl_a_38320,.inl_.X3311_38324,.inl_.X3312_38333,.inl_b_38334,.inl_.inl_c_1926_38362 31395, Generating implicit private(_particle) 31513, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 31516, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 31513, Local memory used for .inl_.inl_c_1926_38636,.inl_.inl_.inl_b_1900_1932_38641,.inl_.inl_.inl_.X3329_1899_1931_38640,.inl_.inl_b_1922_38635,.inl_.inl_c_1915_38625,.inl_.inl_.inl_b_1900_1921_38630,.inl_.inl_.inl_.X3329_1899_1920_38629,.inl_.inl_b_1911_38624,.inl_.inl_.X3313_1910_38619,.inl_.inl_c_1907_38618,.inl_c_38649,.inl_.inl_b_1906_38616,.inl_.inl_.X3329_1905_38615,.inl_b_38608,.inl_.X3312_38607,.inl_.X3313_38602,.inl_c_38610,.inl_.X3311_38598,.inl_a_38594,.inl_.inl_c_1926_38586,.inl_.inl_.inl_b_1900_1932_38591,.inl_.inl_.inl_.X3329_1899_1931_38590,.inl_.inl_b_1922_38585,.inl_.inl_c_1915_38575,.inl_.inl_.inl_b_1900_1921_38580,.inl_.inl_.inl_.X3329_1899_1920_38579,.inl_.inl_b_1911_38574,.inl_.inl_.X3313_1910_38569,.inl_.inl_c_1907_38568,.inl_c_38599,.inl_.inl_b_1906_38566,.inl_.inl_.X3329_1905_38565,.inl_b_38558,.inl_.X3312_38557,.inl_.X3313_38552,.inl_c_38560,.inl_.X3311_38548,.inl_a_38544,.inl_.inl_c_1926_38512,.inl_.inl_.inl_b_1900_1932_38517,.inl_.inl_.inl_.X3329_1899_1931_38516,.inl_.inl_b_1922_38511,.inl_.inl_c_1915_38501,.inl_.inl_.inl_b_1900_1921_38506,.inl_.inl_.inl_.X3329_1899_1920_38505,.inl_.inl_b_1911_38500,.inl_.inl_.X3313_1910_38495,.inl_.inl_c_1907_38494,.inl_c_38549,.inl_.inl_b_1906_38492,.inl_.inl_.X3329_1905_38491,.inl_b_38484,.inl_.X3312_38483,.inl_.X3313_38478,.inl_c_38486,.inl_.X3311_38474,.inl_a_38470,.inl_.inl_c_1926_38462,.inl_.inl_.inl_b_1900_1932_38467,.inl_.inl_.inl_.X3329_1899_1931_38466,.inl_.inl_b_1922_38461,.inl_.inl_c_1915_38451,.inl_.inl_.inl_b_1900_1921_38456,.inl_.inl_.inl_.X3329_1899_1920_38455,.inl_.inl_b_1911_38450,.inl_.inl_.X3313_1910_38445,.inl_.inl_c_1907_38444,.inl_c_38475,.inl_.inl_b_1906_38442,.inl_.inl_.X3329_1905_38441,.inl_b_38434,.inl_.X3312_38433,.inl_.X3313_38428,.inl_c_38436,.inl_.X3311_38424,.inl_a_38420,_particle_save,.inl_c_38660,.inl_.inl_c_1915_38675,.inl_.inl_.inl_b_1900_1921_38680,.inl_.inl_.inl_.X3329_1899_1920_38679,.inl_.inl_b_1911_38674,.inl_.inl_c_1907_38668,.inl_.inl_.inl_.X3329_1899_1931_38690,.inl_.inl_.X3329_1905_38665,.inl_.inl_b_1906_38666,.inl_.X3313_38652,.inl_.inl_b_1922_38685,.inl_c_38425,.inl_.inl_.inl_b_1900_1932_38691,.inl_.inl_.X3313_1910_38669,.inl_a_38644,.inl_.X3311_38648,.inl_.X3312_38657,.inl_b_38658,.inl_.inl_c_1926_38686 31516, Generating implicit private(_particle) finally: 32919, Generating update self(_det_var,_PSDlin_transmission_transmitted_var,_Banana_monitor_var,_stop_var,_Incoherent_process_var,_slit_var,_sample_var,_Union_logger_2DQ_incoherent_var,_Single_crystal_test_process_var,_Union_logger_2DQ_crystal_var,_test_sample_var,_test_material_var,_instrument_var,_cylinder_sample_union_var,_Origin_var,_PSDlin_transmission_scattered_var,_source_var,_init_var) mcenabletrace: 5894, Generating update device(mcdotrace) /usr/bin/ld: /tmp/nvcG-mqlGWoeduRv.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-11-18/McStas_8GPU_openacc_5e6_Linux_5e6/Single_crystal_validation/./Single_crystal_validation.c:20443: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===