loading system configuration loading user configuration from /users/willend/.mcstas/3.x-dev/mccode_config.json loading override configuration from /users/willend/McCode/tools/Python/mctest/../mccodelib/mcstas-test/McStas_DUAL_A100_DMSC/mccode_config.json INFO: No output directory specified (--dir) INFO: Using directory: "McStas_Single_crystal_20221001_010326" INFO: Regenerating c-file: McStas_Single_crystal.c DEBUG: CMD: mcstas -t -o ./McStas_Single_crystal.c /users/willend/TESTS/2022-10-01/McStas_DUAL_A100_DMSC_5e7/McStas_Single_crystal/McStas_Single_crystal.instr CFLAGS= -I@MCCODE_LIB@/libs/mcpl -L@MCCODE_LIB@/libs/mcpl -lmcpl -I@MCCODE_LIB@/libs/mcpl -L@MCCODE_LIB@/libs/mcpl -lmcpl WARNING: The parameter mosaic_AB of SX 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: ----------------------------------------------------------- INFO: Recompiling: ./McStas_Single_crystal.out DEBUG: CMD: nvc -o ./McStas_Single_crystal.out ./McStas_Single_crystal.c -lm -DUSE_MPI -lmpi -L/mnt/groupdata/apps/CentOS8_2/nvhpc/hpc_sdk/Linux_x86_64/21.2/comm_libs/mpi/lib -I/mnt/groupdata/apps/CentOS8_2/nvhpc/hpc_sdk/Linux_x86_64/21.2/comm_libs/mpi/include -ta:tesla,managed -DOPENACC -Minfo:accel -I/users/willend/McStas/mcstas/3.x-dev/tools/Python/mcrun/../mccodelib/../../../libs/mcpl -L/users/willend/McStas/mcstas/3.x-dev/tools/Python/mcrun/../mccodelib/../../../libs/mcpl -lmcpl -I/users/willend/McStas/mcstas/3.x-dev/tools/Python/mcrun/../mccodelib/../../../libs/mcpl -L/users/willend/McStas/mcstas/3.x-dev/tools/Python/mcrun/../mccodelib/../../../libs/mcpl -lmcpl "./McStas_Single_crystal.c", line 1507: warning: arithmetic on pointer to void or function type if (MPI_Send((void*)(sbuf+offset*dsize), length, dtype, dest, tag++, MPI_COMM_WORLD) != MPI_SUCCESS) ^ "./McStas_Single_crystal.c", line 1534: warning: arithmetic on pointer to void or function type if (MPI_Recv((void*)(sbuf+offset*dsize), length, dtype, source, tag++, ^ "./McStas_Single_crystal.c", line 3253: warning: missing return statement at end of non-void function "siminfo_init" } /* siminfo_init */ ^ "./McStas_Single_crystal.c", line 9707: warning: variable "jglobal" was declared but never referenced int jglobal=-1; ^ "./McStas_Single_crystal.c", line 9708: warning: variable "coherent_refl" was set but never used double coherent_refl,coherent_xsect; ^ "./McStas_Single_crystal.c", line 9708: warning: variable "coherent_xsect" was set but never used double coherent_refl,coherent_xsect; ^ "./McStas_Single_crystal.c", line 10087: warning: controlling expression is constant if("McStas_Single_crystal_in.mcpl" && strlen("McStas_Single_crystal_in.mcpl")) ^ "./McStas_Single_crystal.c", line 10088: warning: controlling expression is constant stracpy(_mcpl_in_var._parameters.filename, "McStas_Single_crystal_in.mcpl" ? "McStas_Single_crystal_in.mcpl" : "", 16384); ^ "./McStas_Single_crystal.c", line 10103: warning: variable "tc2" was declared but never referenced Coords tc1, tc2; ^ "./McStas_Single_crystal.c", line 10104: warning: variable "tr1" was declared but never referenced Rotation tr1; ^ "./McStas_Single_crystal.c", line 10182: warning: variable "tc2" was declared but never referenced Coords tc1, tc2; ^ "./McStas_Single_crystal.c", line 10213: warning: controlling expression is constant if("" && strlen("")) ^ "./McStas_Single_crystal.c", line 10214: warning: controlling expression is constant stracpy(_mcpl_out_var._parameters.userflag, "" ? "" : "", 16384); ^ "./McStas_Single_crystal.c", line 10217: warning: controlling expression is constant if("McStas_Single_crystal_out.mcpl" && strlen("McStas_Single_crystal_out.mcpl")) ^ "./McStas_Single_crystal.c", line 10218: warning: controlling expression is constant stracpy(_mcpl_out_var._parameters.filename, "McStas_Single_crystal_out.mcpl" ? "McStas_Single_crystal_out.mcpl" : "", 16384); ^ "./McStas_Single_crystal.c", line 10221: warning: controlling expression is constant if("" && strlen("")) ^ "./McStas_Single_crystal.c", line 10222: warning: controlling expression is constant stracpy(_mcpl_out_var._parameters.userflagcomment, "" ? "" : "", 16384); ^ "./McStas_Single_crystal.c", line 10232: warning: variable "tc2" was declared but never referenced Coords tc1, tc2; ^ "./McStas_Single_crystal.c", line 10284: warning: variable "line" was declared but never referenced char line[256]; ^ "./McStas_Single_crystal.c", line 10489: warning: variable "as" was declared but never referenced double as, bs, cs; ^ "./McStas_Single_crystal.c", line 10489: warning: variable "bs" was declared but never referenced double as, bs, cs; ^ "./McStas_Single_crystal.c", line 10489: warning: variable "cs" was declared but never referenced double as, bs, cs; ^ "./McStas_Single_crystal.c", line 10490: warning: variable "i" was declared but never referenced int i=0; ^ "./McStas_Single_crystal.c", line 10691: warning: argument of type "unsigned char *" is incompatible with parameter of type "const char *" mcpl_hdr_add_data(outputfile, "mccode_instr_file", size, buffer); ^ "./McStas_Single_crystal.c", line 10682: warning: variable "status" was declared but never referenced int size,status; ^ "./McStas_Single_crystal.c", line 10896: warning: incompatible redefinition of macro "exit" (declared at line 474) #define exit(...) noprintf() ^ "./McStas_Single_crystal.c", line 11203: warning: variable "rho_x" was declared but never referenced double rho_x, rho_y, rho_z; /* the vector ki - tau */ ^ "./McStas_Single_crystal.c", line 11203: warning: variable "rho_y" was declared but never referenced double rho_x, rho_y, rho_z; /* the vector ki - tau */ ^ "./McStas_Single_crystal.c", line 11203: warning: variable "rho_z" was declared but never referenced double rho_x, rho_y, rho_z; /* the vector ki - tau */ ^ "./McStas_Single_crystal.c", line 11204: warning: variable "rho" was declared but never referenced double rho; ^ "./McStas_Single_crystal.c", line 11205: warning: variable "diff" was declared but never referenced double diff; /* Deviation from Bragg condition */ ^ "./McStas_Single_crystal.c", line 11206: warning: variable "ox" was declared but never referenced double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./McStas_Single_crystal.c", line 11206: warning: variable "oy" was declared but never referenced double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./McStas_Single_crystal.c", line 11206: warning: variable "oz" was declared but never referenced double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./McStas_Single_crystal.c", line 11207: warning: variable "b1x" was declared but never referenced double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./McStas_Single_crystal.c", line 11207: warning: variable "b1y" was declared but never referenced double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./McStas_Single_crystal.c", line 11207: warning: variable "b1z" was declared but never referenced double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./McStas_Single_crystal.c", line 11208: warning: variable "b2x" was declared but never referenced double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./McStas_Single_crystal.c", line 11208: warning: variable "b2y" was declared but never referenced double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./McStas_Single_crystal.c", line 11208: warning: variable "b2z" was declared but never referenced double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./McStas_Single_crystal.c", line 11209: warning: variable "n11" was declared but never referenced double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./McStas_Single_crystal.c", line 11209: warning: variable "n12" was declared but never referenced double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./McStas_Single_crystal.c", line 11209: warning: variable "n22" was declared but never referenced double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./McStas_Single_crystal.c", line 11210: warning: variable "det_N" was declared but never referenced double det_N; /* Determinant of N */ ^ "./McStas_Single_crystal.c", line 11211: warning: variable "inv_n11" was declared but never referenced double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./McStas_Single_crystal.c", line 11211: warning: variable "inv_n12" was declared but never referenced double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./McStas_Single_crystal.c", line 11211: warning: variable "inv_n22" was declared but never referenced double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./McStas_Single_crystal.c", line 11212: warning: variable "l11" was declared but never referenced double l11, l12, l22; /* Cholesky decomposition L of 1/2*inv(N) */ ^ "./McStas_Single_crystal.c", line 11212: warning: variable "l12" was declared but never referenced double l11, l12, l22; /* Cholesky decomposition L of 1/2*inv(N) */ ^ "./McStas_Single_crystal.c", line 11212: warning: variable "l22" was declared but never referenced double l11, l12, l22; /* Cholesky decomposition L of 1/2*inv(N) */ ^ "./McStas_Single_crystal.c", line 11213: warning: variable "det_L" was declared but never referenced double det_L; /* Determinant of L */ ^ "./McStas_Single_crystal.c", line 11214: warning: variable "Bt_D_O_x" was declared but never referenced double Bt_D_O_x, Bt_D_O_y; /* Temporaries */ ^ "./McStas_Single_crystal.c", line 11214: warning: variable "Bt_D_O_y" was declared but never referenced double Bt_D_O_x, Bt_D_O_y; /* Temporaries */ ^ "./McStas_Single_crystal.c", line 11215: warning: variable "y0x" was declared but never referenced double y0x, y0y; /* Center of 2D Gauss in plane coordinates */ ^ "./McStas_Single_crystal.c", line 11215: warning: variable "y0y" was declared but never referenced double y0x, y0y; /* Center of 2D Gauss in plane coordinates */ ^ "./McStas_Single_crystal.c", line 11216: warning: variable "alpha" was declared but never referenced double alpha; /* Offset of 2D Gauss center from 3D center */ ^ "./McStas_Single_crystal.c", line 11223: warning: variable "tot_xsect" was declared but never referenced double tot_xsect, tot_xlen; /* Total cross section and length */ ^ "./McStas_Single_crystal.c", line 11230: warning: variable "theta" was declared but never referenced double theta, phi; /* rotation angles for curved lattice option */ ^ "./McStas_Single_crystal.c", line 11230: warning: variable "phi" was declared but never referenced double theta, phi; /* rotation angles for curved lattice option */ ^ "./McStas_Single_crystal.c", line 11239: warning: variable "type" was set but never used char type; /* type of last event: t=transmit,c=coherent or i=incoherent */ ^ "./McStas_Single_crystal.c", line 13063: warning: variable "t" is used before its value is set mcstartdate = (long)t; /* set start date before parsing options and creating sim file */ ^ "./McStas_Single_crystal.c", line 13003: warning: variable "ct" was declared but never referenced clock_t ct; ^ "./McStas_Single_crystal.c", line 1325: warning: variable "mcstartdate" was set but never used static long mcstartdate = 0; /* start simulation time */ ^ "./McStas_Single_crystal.c", line 2566: warning: function "strcpy_valid" was declared but never referenced static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 88, Generating acc routine seq Generating Tesla code particle_getvar: 102, Generating acc routine seq Generating Tesla code particle_getvar_void: 131, Generating acc routine seq Generating Tesla code particle_setvar_void: 155, Generating acc routine seq Generating Tesla code particle_setvar_void_array: 177, Generating acc routine seq Generating Tesla code particle_restore: 188, Generating acc routine seq Generating Tesla code particle_getuservar_byid: 197, Generating acc routine seq Generating Tesla code particle_uservar_init: 207, Generating acc routine seq Generating Tesla code noprintf: 1357, Generating acc routine seq Generating Tesla code str_comp: 1361, Generating acc routine seq Generating Tesla code str_len: 1370, Generating acc routine seq Generating Tesla code mcget_ncount: 3544, Generating acc routine seq Generating Tesla code coords_set: 3781, Generating acc routine seq Generating Tesla code coords_get: 3792, Generating acc routine seq Generating Tesla code coords_add: 3801, Generating acc routine seq Generating Tesla code coords_sub: 3813, Generating acc routine seq Generating Tesla code coords_neg: 3825, Generating acc routine seq Generating Tesla code coords_scale: 3835, Generating acc routine seq Generating Tesla code coords_sp: 3845, Generating acc routine seq Generating Tesla code coords_xp: 3853, Generating acc routine seq Generating Tesla code coords_len: 3863, Generating acc routine seq Generating Tesla code coords_print: 3885, Generating acc routine seq Generating Tesla code coords_norm: 3892, Generating acc routine seq Generating Tesla code rot_set_rotation: 3938, Generating acc routine seq Generating Tesla code rot_test_identity: 3973, Generating acc routine seq Generating Tesla code rot_mul: 3984, Generating acc routine seq Generating Tesla code rot_copy: 4001, Generating acc routine seq Generating Tesla code rot_transpose: 4012, Generating acc routine seq Generating Tesla code rot_apply: 4028, Generating acc routine seq Generating Tesla code vec_prod_func: 4057, Generating acc routine seq Generating Tesla code scalar_prod: 4068, Generating acc routine seq Generating Tesla code norm_func: 4072, Generating acc routine seq Generating Tesla code mccoordschange: 4249, Generating acc routine seq Generating Tesla code mccoordschange_polarisation: 4280, Generating acc routine seq Generating Tesla code normal_vec: 4297, Generating acc routine seq Generating Tesla code solve_2nd_order: 4396, Generating acc routine seq Generating Tesla code _randvec_target_circle: 4480, Generating acc routine seq Generating Tesla code _randvec_target_rect_angular: 4546, Generating acc routine seq Generating Tesla code _randvec_target_rect_real: 4623, Generating acc routine seq Generating Tesla code kiss_srandom: 4895, Generating acc routine seq Generating Tesla code kiss_random: 4905, Generating acc routine seq Generating Tesla code _hash: 4931, Generating acc routine seq Generating Tesla code _randnorm2: 4972, Generating acc routine seq Generating Tesla code _randtriangle: 4983, Generating acc routine seq Generating Tesla code _rand01: 4988, Generating acc routine seq Generating Tesla code _randpm1: 4996, Generating acc routine seq Generating Tesla code _rand0max: 5004, Generating acc routine seq Generating Tesla code _randminmax: 5011, Generating acc routine seq Generating Tesla code mcsetstate: 5623, Generating acc routine seq Generating Tesla code inside_rectangle: 5715, Generating acc routine seq Generating Tesla code box_intersect: 5732, Generating acc routine seq Generating Tesla code cylinder_intersect: 5847, Generating acc routine seq Generating Tesla code sphere_intersect: 5902, Generating acc routine seq Generating Tesla code Table_Index: 6876, Generating acc routine seq Generating Tesla code Table_Value: 6944, Generating acc routine seq Generating Tesla code Table_Value2d: 7023, Generating acc routine seq Generating Tesla code Table_Interp1d: 7461, Generating acc routine seq Generating Tesla code Table_Interp1d_nearest: 7477, Generating acc routine seq Generating Tesla code Table_Interp2d: 7495, Generating acc routine seq Generating Tesla code off_F: 7713, Generating acc routine seq Generating Tesla code off_sign: 7718, Generating acc routine seq Generating Tesla code off_normal: 7728, Generating acc routine seq Generating Tesla code off_pnpoly: 7754, Generating acc routine seq Generating Tesla code off_intersectPoly: 7816, Generating acc routine seq Generating Tesla code off_init_planes: 7947, Generating acc routine seq Generating Tesla code off_clip_3D_mod: 7992, Generating acc routine seq Generating Tesla code off_compare: 8104, Generating acc routine seq Generating Tesla code off_cleanDouble: 8116, Generating acc routine seq Generating Tesla code off_cleanInOut: 8151, Generating acc routine seq Generating Tesla code Min_int: 8395, Generating acc routine seq Generating Tesla code off_intersect_all: 8511, Generating acc routine seq Generating Tesla code off_intersect: 8593, Generating acc routine seq Generating Tesla code off_x_intersect: 8615, Generating acc routine seq Generating Tesla code SX_list_compare: 9265, Generating acc routine seq Generating Tesla code hkl_search: 9697, Generating acc routine seq Generating Tesla code hkl_select: 9809, Generating acc routine seq Generating Tesla code randrotate: 9824, Generating acc routine seq Generating Tesla code randderotate: 9832, Generating acc routine seq Generating Tesla code PGrotate: 9840, Generating acc routine seq Generating Tesla code PGderotate: 9848, Generating acc routine seq Generating Tesla code vec_rotate_2d: 9859, Generating acc routine seq Generating Tesla code init: 10867, Generating update device(_instrument_var,_mcpl_out_var,_mcpl_in_var,_SX_var) class_MCPL_input_trace: 10910, Generating acc routine seq Generating Tesla code class_Single_crystal_trace: 11146, Generating acc routine seq Generating Tesla code class_MCPL_output_trace: 11676, Generating acc routine seq Generating Tesla code raytrace: 11837, Generating acc routine seq Generating Tesla code raytrace_all: 11952, Generating Tesla code 11963, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 11952, Local memory used for particleN finally: 12647, Generating update self(_instrument_var,_mcpl_out_var,_mcpl_in_var,_SX_var) INFO: ===