INFO: No output directory specified (--dir) INFO: Using directory: "Test_Mono_20241121_064923" INFO: Regenerating c-file: Test_Mono.c DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace -t -o ./Test_Mono.c Test_Mono.instr Warning: 'Perfect_crystal' is an obsolete component (not maintained). Info: 'Bragg_crystal_BC' is a contributed component. Info: 'Bragg_crystal_bent_BC' is a contributed component. Info: 'Bragg_crystal_simple' is a contributed component. CFLAGS= -std=c99 WARNING: The parameter mosaic_AB of MonoBCsx 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 surf_dir of MonoBCsx 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: ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace finished INFO: Recompiling: ./Test_Mono.out DEBUG: CMD: nvc -o ./Test_Mono.out ./Test_Mono.c -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/lib -L/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC -std=c99 "./Test_Mono.c", line 4476: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./Test_Mono.c", line 6599: warning: variable "ret" was declared but never referenced [declared_but_not_referenced] int ret=1,stat=0,plane_stat=0; ^ "./Test_Mono.c", line 6772: warning: variable "D" was declared but never referenced [declared_but_not_referenced] double A,B,C,D,k; ^ "./Test_Mono.c", line 8486: warning: variable "theta0" was declared but never referenced [declared_but_not_referenced] double r0,lambda,theta,theta0,DeltaThetas,a,d,b,C,W,kappa,g,L; ^ "./Test_Mono.c", line 9057: warning: variable "theta0" was declared but never referenced [declared_but_not_referenced] double lambda,theta,theta0,DeltaThetas,a,d,b,C,W,kappa,g,L; ^ "./Test_Mono.c", line 9477: 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; ^ "./Test_Mono.c", line 9477: 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; ^ "./Test_Mono.c", line 9477: 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; ^ "./Test_Mono.c", line 9477: 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; ^ "./Test_Mono.c", line 9477: 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; ^ "./Test_Mono.c", line 9477: 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; ^ "./Test_Mono.c", line 9834: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_Mono.c", line 10796: warning: return value type does not match the function type [bad_return_value_type] if(!ext || ext == infile) return infile; ^ "./Test_Mono.c", line 10805: warning: return value type does not match the function type [bad_return_value_type] && strcasecmp(ext, "res")) return infile; ^ "./Test_Mono.c", line 10808: warning: return value type does not match the function type [bad_return_value_type] if (!OUTFILE) return infile; ^ "./Test_Mono.c", line 10870: warning: variable "flag" was declared but never referenced [declared_but_not_referenced] char flag=0; ^ "./Test_Mono.c", line 11371: warning: variable "jglobal" was declared but never referenced [declared_but_not_referenced] int jglobal=-1; ^ "./Test_Mono.c", line 11372: warning: variable "coherent_refl" was set but never used [set_but_not_used] double coherent_refl,coherent_xsect; ^ "./Test_Mono.c", line 11372: warning: variable "coherent_xsect" was set but never used [set_but_not_used] double coherent_refl,coherent_xsect; ^ "./Test_Mono.c", line 11530: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Test_Mono.c", line 11532: warning: variable "Z" was set but never used [set_but_not_used] double Z; ^ "./Test_Mono.c", line 12233: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Mono.c", line 12221: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Test_Mono.c", line 12274: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Test_Mono.c", line 12345: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Test_Mono.c", line 12408: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Test_Mono.c", line 12469: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Test_Mono.c", line 12518: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Test_Mono.c", line 12585: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Test_Mono.c", line 12656: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./Test_Mono.c", line 12733: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./Test_Mono.c", line 12807: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./Test_Mono.c", line 12885: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./Test_Mono.c", line 12945: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./Test_Mono.c", line 13049: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./Test_Mono.c", line 13098: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./Test_Mono.c", line 13157: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./Test_Mono.c", line 13220: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./Test_Mono.c", line 13281: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./Test_Mono.c", line 13434: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "./Test_Mono.c", line 13504: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Test_Mono.c", line 13504: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Test_Mono.c", line 13505: warning: variable "p1" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Test_Mono.c", line 13505: warning: variable "p2" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Test_Mono.c", line 13505: warning: variable "p3" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Test_Mono.c", line 13563: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./Test_Mono.c", line 13619: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Test_Mono.c", line 13684: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Test_Mono.c", line 13765: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Test_Mono.c", line 13856: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Test_Mono.c", line 13946: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Test_Mono.c", line 14172: warning: variable "surf_dir_sum" was declared but never referenced [declared_but_not_referenced] double surf_dir_sum =0; ^ "./Test_Mono.c", line 14110: warning: variable "as" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Test_Mono.c", line 14110: warning: variable "bs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Test_Mono.c", line 14110: warning: variable "cs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Test_Mono.c", line 14352: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Test_Mono.c", line 14352: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Test_Mono.c", line 14778: warning: variable "k" was declared but never referenced [declared_but_not_referenced] int i,j,k; ^ "./Test_Mono.c", line 14779: warning: variable "e" was declared but never referenced [declared_but_not_referenced] double e,p2; ^ "./Test_Mono.c", line 14980: warning: expression has no effect [expr_has_no_effect] y_int=y+kyu*tin;V, ^ "./Test_Mono.c", line 14988: warning: variable "quadrant" was declared but never referenced [declared_but_not_referenced] int quadrant; ^ "./Test_Mono.c", line 14948: warning: variable "kxout" was declared but never referenced [declared_but_not_referenced] double kxout,kyout,kzout; // unit vector in the direction of the reflected ray ^ "./Test_Mono.c", line 14948: warning: variable "kyout" was declared but never referenced [declared_but_not_referenced] double kxout,kyout,kzout; // unit vector in the direction of the reflected ray ^ "./Test_Mono.c", line 14948: warning: variable "kzout" was declared but never referenced [declared_but_not_referenced] double kxout,kyout,kzout; // unit vector in the direction of the reflected ray ^ "./Test_Mono.c", line 14958: warning: variable "Thetaout" was set but never used [set_but_not_used] double Thetaout; // (rad) angle between the crystal surface and the reflected ray ^ "./Test_Mono.c", line 15154: warning: variable "Ex0" was declared but never referenced [declared_but_not_referenced] double kx0=kx, ky0=ky, kz0=kz, Ex0=Ex, Ey0=Ey, Ez0=Ez; ^ "./Test_Mono.c", line 15154: warning: variable "Ey0" was declared but never referenced [declared_but_not_referenced] double kx0=kx, ky0=ky, kz0=kz, Ex0=Ex, Ey0=Ey, Ez0=Ez; ^ "./Test_Mono.c", line 15154: warning: variable "Ez0" was declared but never referenced [declared_but_not_referenced] double kx0=kx, ky0=ky, kz0=kz, Ex0=Ex, Ey0=Ey, Ez0=Ez; ^ "./Test_Mono.c", line 15110: warning: variable "Thetaout" was declared but never referenced [declared_but_not_referenced] double Thetaout; // (rad) angle between the crystal surface and the reflected ray ^ "./Test_Mono.c", line 15383: warning: variable "quadrant" was declared but never referenced [declared_but_not_referenced] int quadrant; ^ "./Test_Mono.c", line 15407: warning: variable "Ex0" was declared but never referenced [declared_but_not_referenced] double kx0=kx, ky0=ky, kz0=kz, Ex0=Ex, Ey0=Ey, Ez0=Ez; ^ "./Test_Mono.c", line 15407: warning: variable "Ey0" was declared but never referenced [declared_but_not_referenced] double kx0=kx, ky0=ky, kz0=kz, Ex0=Ex, Ey0=Ey, Ez0=Ez; ^ "./Test_Mono.c", line 15407: warning: variable "Ez0" was declared but never referenced [declared_but_not_referenced] double kx0=kx, ky0=ky, kz0=kz, Ex0=Ex, Ey0=Ey, Ez0=Ez; ^ "./Test_Mono.c", line 15341: warning: variable "yy0" was set but never used [set_but_not_used] double xx0, xx1, yy0, yy1, zz0, zz1; /* we will have to tentatively propagate twice to see which surface we hit */ ^ "./Test_Mono.c", line 15341: warning: variable "yy1" was set but never used [set_but_not_used] double xx0, xx1, yy0, yy1, zz0, zz1; /* we will have to tentatively propagate twice to see which surface we hit */ ^ "./Test_Mono.c", line 15310: warning: variable "x_int" was declared but never referenced [declared_but_not_referenced] double x_int,y_int,z_int; // intersection with the y=0 plane ^ "./Test_Mono.c", line 15310: warning: variable "y_int" was declared but never referenced [declared_but_not_referenced] double x_int,y_int,z_int; // intersection with the y=0 plane ^ "./Test_Mono.c", line 15310: warning: variable "z_int" was declared but never referenced [declared_but_not_referenced] double x_int,y_int,z_int; // intersection with the y=0 plane ^ "./Test_Mono.c", line 15601: warning: variable "fail" was set but never used [set_but_not_used] int fail; ^ "./Test_Mono.c", line 15576: warning: variable "kk0" was declared but never referenced [declared_but_not_referenced] double kk0[3]={kx,ky,kz}; ^ "./Test_Mono.c", line 15826: warning: variable "grad_x" was declared but never referenced [declared_but_not_referenced] double grad_x, grad_y, grad_z; ^ "./Test_Mono.c", line 15826: warning: variable "grad_y" was declared but never referenced [declared_but_not_referenced] double grad_x, grad_y, grad_z; ^ "./Test_Mono.c", line 15826: warning: variable "grad_z" was declared but never referenced [declared_but_not_referenced] double grad_x, grad_y, grad_z; ^ "./Test_Mono.c", line 15831: warning: variable "l_grad_x" was declared but never referenced [declared_but_not_referenced] double l_grad_x, l_grad_y, l_grad_z; ^ "./Test_Mono.c", line 15831: warning: variable "l_grad_y" was declared but never referenced [declared_but_not_referenced] double l_grad_x, l_grad_y, l_grad_z; ^ "./Test_Mono.c", line 15831: warning: variable "l_grad_z" was declared but never referenced [declared_but_not_referenced] double l_grad_x, l_grad_y, l_grad_z; ^ "./Test_Mono.c", line 15848: warning: variable "fail" was set but never used [set_but_not_used] int fail; ^ "./Test_Mono.c", line 15803: warning: variable "yy0" was set but never used [set_but_not_used] double xx0, xx1, yy0, yy1, zz0, zz1; /* we will have to tentatively propagate twice to see which surface we hit */ ^ "./Test_Mono.c", line 15803: warning: variable "yy1" was set but never used [set_but_not_used] double xx0, xx1, yy0, yy1, zz0, zz1; /* we will have to tentatively propagate twice to see which surface we hit */ ^ "./Test_Mono.c", line 15765: warning: variable "x_int" was declared but never referenced [declared_but_not_referenced] double x_int,y_int,z_int; // intersection with the y=0 plane ^ "./Test_Mono.c", line 15765: warning: variable "y_int" was declared but never referenced [declared_but_not_referenced] double x_int,y_int,z_int; // intersection with the y=0 plane ^ "./Test_Mono.c", line 15765: warning: variable "z_int" was declared but never referenced [declared_but_not_referenced] double x_int,y_int,z_int; // intersection with the y=0 plane ^ "./Test_Mono.c", line 15995: warning: variable "e" was set but never used [set_but_not_used] double k,e,theta_bragg; ^ "./Test_Mono.c", line 16102: warning: variable "k" was declared but never referenced [declared_but_not_referenced] double k; /* photon wave vector */ ^ "./Test_Mono.c", line 16103: warning: variable "rho_x" was declared but never referenced [declared_but_not_referenced] double rho_x, rho_y, rho_z; /* the vector ki - tau */ ^ "./Test_Mono.c", line 16103: warning: variable "rho_y" was declared but never referenced [declared_but_not_referenced] double rho_x, rho_y, rho_z; /* the vector ki - tau */ ^ "./Test_Mono.c", line 16103: warning: variable "rho_z" was declared but never referenced [declared_but_not_referenced] double rho_x, rho_y, rho_z; /* the vector ki - tau */ ^ "./Test_Mono.c", line 16104: warning: variable "rho" was declared but never referenced [declared_but_not_referenced] double rho; ^ "./Test_Mono.c", line 16105: warning: variable "diff" was declared but never referenced [declared_but_not_referenced] double diff; /* Deviation from Bragg condition */ ^ "./Test_Mono.c", line 16106: warning: variable "ox" was declared but never referenced [declared_but_not_referenced] double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./Test_Mono.c", line 16106: warning: variable "oy" was declared but never referenced [declared_but_not_referenced] double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./Test_Mono.c", line 16106: warning: variable "oz" was declared but never referenced [declared_but_not_referenced] double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./Test_Mono.c", line 16107: warning: variable "b1x" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Test_Mono.c", line 16107: warning: variable "b1y" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Test_Mono.c", line 16107: warning: variable "b1z" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Test_Mono.c", line 16108: warning: variable "b2x" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Test_Mono.c", line 16108: warning: variable "b2y" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Test_Mono.c", line 16108: warning: variable "b2z" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Test_Mono.c", line 16109: warning: variable "n11" was declared but never referenced [declared_but_not_referenced] double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./Test_Mono.c", line 16109: warning: variable "n12" was declared but never referenced [declared_but_not_referenced] double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./Test_Mono.c", line 16109: warning: variable "n22" was declared but never referenced [declared_but_not_referenced] double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./Test_Mono.c", line 16110: warning: variable "det_N" was declared but never referenced [declared_but_not_referenced] double det_N; /* Determinant of N */ ^ "./Test_Mono.c", line 16111: warning: variable "inv_n11" was declared but never referenced [declared_but_not_referenced] double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./Test_Mono.c", line 16111: warning: variable "inv_n12" was declared but never referenced [declared_but_not_referenced] double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./Test_Mono.c", line 16111: warning: variable "inv_n22" was declared but never referenced [declared_but_not_referenced] double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./Test_Mono.c", line 16112: warning: variable "l11" was declared but never referenced [declared_but_not_referenced] double l11, l12, l22; /* Cholesky decomposition L of 1/2*inv(N) */ ^ "./Test_Mono.c", line 16112: warning: variable "l12" was declared but never referenced [declared_but_not_referenced] double l11, l12, l22; /* Cholesky decomposition L of 1/2*inv(N) */ ^ "./Test_Mono.c", line 16112: warning: variable "l22" was declared but never referenced [declared_but_not_referenced] double l11, l12, l22; /* Cholesky decomposition L of 1/2*inv(N) */ ^ "./Test_Mono.c", line 16113: warning: variable "det_L" was declared but never referenced [declared_but_not_referenced] double det_L; /* Determinant of L */ ^ "./Test_Mono.c", line 16114: 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 */ ^ "./Test_Mono.c", line 16114: 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 */ ^ "./Test_Mono.c", line 16115: warning: variable "y0x" was declared but never referenced [declared_but_not_referenced] double y0x, y0y; /* Center of 2D Gauss in plane coordinates */ ^ "./Test_Mono.c", line 16115: warning: variable "y0y" was declared but never referenced [declared_but_not_referenced] double y0x, y0y; /* Center of 2D Gauss in plane coordinates */ ^ "./Test_Mono.c", line 16116: warning: variable "alpha" was declared but never referenced [declared_but_not_referenced] double alpha; /* Offset of 2D Gauss center from 3D center */ ^ "./Test_Mono.c", line 16122: warning: variable "coh_xsect" was declared but never referenced [declared_but_not_referenced] double coh_xsect, coh_xlen; /* Coherent cross section and length */ ^ "./Test_Mono.c", line 16123: warning: variable "tot_xsect" was declared but never referenced [declared_but_not_referenced] double tot_xsect, tot_xlen; /* Total cross section and length */ ^ "./Test_Mono.c", line 16138: 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 */ ^ "./Test_Mono.c", line 18324: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j,N=12; ^ "./Test_Mono.c", line 18325: warning: variable "t" was declared but never referenced [declared_but_not_referenced] double t,xx,yy,zz,xx0,yy0,zz0; ^ "./Test_Mono.c", line 18325: warning: variable "xx0" was declared but never referenced [declared_but_not_referenced] double t,xx,yy,zz,xx0,yy0,zz0; ^ "./Test_Mono.c", line 18477: warning: variable "aa" was declared but never referenced [declared_but_not_referenced] double aa,bb,cc; ^ "./Test_Mono.c", line 18477: warning: variable "bb" was declared but never referenced [declared_but_not_referenced] double aa,bb,cc; ^ "./Test_Mono.c", line 18477: warning: variable "cc" was declared but never referenced [declared_but_not_referenced] double aa,bb,cc; ^ "./Test_Mono.c", line 19053: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_Mono.c", line 19054: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_Mono.c", line 1485: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_Mono.c", line 2888: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 84, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 98, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 131, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 156, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 179, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 190, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 199, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 209, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1532, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1536, Generating acc routine seq Generating NVIDIA GPU code str_len: 1545, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4097, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4528, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4539, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4548, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4560, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4572, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4582, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4592, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4600, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4610, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4632, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4639, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4685, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4720, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4731, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4748, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4759, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4775, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4804, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4815, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4819, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 4996, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5027, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5044, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5143, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5227, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5293, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5370, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5642, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5652, Generating acc routine seq Generating NVIDIA GPU code _hash: 5678, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5719, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5730, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5735, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5743, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5751, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5758, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6400, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6433, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6494, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6510, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6596, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6664, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7815, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7883, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7962, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8430, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8446, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8464, Generating acc routine seq Generating NVIDIA GPU code DarwinReflectivity: 8484, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Mx_CubicCrystalChi: 8643, Generating acc routine seq Generating NVIDIA GPU code Mx_DarwinReflectivityBC: 8732, Generating acc routine seq Generating NVIDIA GPU code cross: 8800, Generating acc routine seq Generating NVIDIA GPU code Mx_DiffractionDispersion: 8815, Generating acc routine seq Generating NVIDIA GPU code Mx_LaueReflectivityBC: 8948, Generating acc routine seq Generating NVIDIA GPU code Mx_DarwinReflectivity: 9055, Generating acc routine seq Generating NVIDIA GPU code off_F: 9434, Generating acc routine seq Generating NVIDIA GPU code off_sign: 9439, Generating acc routine seq Generating NVIDIA GPU code off_normal: 9449, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 9475, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 9538, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 9669, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 9714, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 9831, Generating acc routine seq Generating NVIDIA GPU code off_compare: 9949, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 9961, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 9996, Generating acc routine seq Generating NVIDIA GPU code Min_int: 10247, Generating acc routine seq Generating NVIDIA GPU code merge: 10254, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 10358, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 10373, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 10427, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 10544, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 10566, Generating acc routine seq Generating NVIDIA GPU code SX_list_compare: 10773, Generating acc routine seq Generating NVIDIA GPU code hkl_search: 11361, Generating acc routine seq Generating NVIDIA GPU code hkl_select: 11474, Generating acc routine seq Generating NVIDIA GPU code randrotate: 11489, Generating acc routine seq Generating NVIDIA GPU code randderotate: 11497, Generating acc routine seq Generating NVIDIA GPU code vec_rotate_2d: 11506, Generating acc routine seq Generating NVIDIA GPU code init: 14489, Generating update device(_Mono_obso_var,_fpi_var,_psd_pre_var,_psd1_var,_Origin_var,_MonoBCsx_var,_Mono_Out_var,_Mono1_var,_Mono1b_var,_MonoBC_var,_MonoBCb_var,_MonoBCs_var,_Mono_Arm_var,_emon_zm_var,_instrument_var,_emon_pre_var,_emon_var,_generic_source_var) class_Progress_bar_trace: 14530, Generating acc routine seq Generating NVIDIA GPU code class_Source_flat_trace: 14621, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 14758, Generating acc routine seq Generating NVIDIA GPU code class_E_monitor_trace: 14849, Generating acc routine seq Generating NVIDIA GPU code class_Perfect_crystal_trace: 14924, Generating acc routine seq Generating NVIDIA GPU code class_Bragg_crystal_trace: 15075, Generating acc routine seq Generating NVIDIA GPU code class_Bragg_crystal_bent_trace: 15270, Generating acc routine seq Generating NVIDIA GPU code class_Bragg_crystal_BC_trace: 15535, Generating acc routine seq Generating NVIDIA GPU code class_Bragg_crystal_bent_BC_trace: 15722, Generating acc routine seq Generating NVIDIA GPU code class_Bragg_crystal_simple_trace: 15980, Generating acc routine seq Generating NVIDIA GPU code class_Single_crystal_trace: 16042, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_4PI_trace: 16579, Generating acc routine seq Generating NVIDIA GPU code raytrace: 16656, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 17043, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 17057, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 17043, Local memory used for .inl_particle_21211,particleN,.inl_.inl_mcphoton_0_21227,.inl_.X2270_21229,.inl_.inl_.X2478_13_21228 17057, Generating implicit firstprivate(seed,_particle) finally: 17952, Generating update self(_Mono_obso_var,_fpi_var,_psd1_var,_psd_pre_var,_Origin_var,_MonoBCsx_var,_Mono_Out_var,_Mono1_var,_Mono1b_var,_MonoBC_var,_MonoBCb_var,_MonoBCs_var,_Mono_Arm_var,_emon_zm_var,_instrument_var,_emon_pre_var,_emon_var,_generic_source_var) mcenabletrace: 5877, Generating update device(mcdotrace) /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/../miniconda3/bin//ld: /tmp/nvcytPubizPFnlIZ.o: in function `cif2hkl': /u/data/pkwi/xTESTS/2024-11-21/McXtrace_8GPU_openacc_1e7_Linux_1e7/Test_Mono/./Test_Mono.c:10810: warning: the use of `tmpnam' is dangerous, better use `mkstemp' /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafaterQubm2FNiIFz.o: missing .note.GNU-stack section implies executable stack /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/../miniconda3/bin//ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker DEBUG: CMD: nvc finished INFO: ===