loading system configuration loading override configuration from /users/willend/mxtest/mctest/../mccodelib/mcxtrace-test/McXtrace_DUAL_A100_DMSC/mccode_config.json INFO: No output directory specified (--dir) INFO: Using directory: "MAXIV_DanMAX_pxrd1d_20230501_052350" INFO: Regenerating c-file: MAXIV_DanMAX_pxrd1d.c DEBUG: CMD: mcxtrace -t -o ./MAXIV_DanMAX_pxrd1d.c /users/willend/xTESTS/2023-05-01/McXtrace_DUAL_A100_DMSC_5e7/MAXIV_DanMAX_pxrd1d/MAXIV_DanMAX_pxrd1d.instr CFLAGS= -I@MCCODE_LIB@/miniconda3/include -Wl,-rpath,@MCCODE_LIB@/miniconda3/lib -L@MCCODE_LIB@/miniconda3/lib -lgsl -lgslcblas -DFUNNEL -std=c99 WARNING: The parameter format of powdern 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 mat_format of powdern 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: -> SPLIT N at component powdern ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: Component dmu is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component dmu -> GPU kernel from component src_psd -> SPLIT within buffer at component powdern ----------------------------------------------------------- INFO: Recompiling: ./MAXIV_DanMAX_pxrd1d.out DEBUG: CMD: nvc -o ./MAXIV_DanMAX_pxrd1d.out ./MAXIV_DanMAX_pxrd1d.c -lm -DUSE_MPI -lmpi -L/opt/nvidia/hpc_sdk/Linux_x86_64/23.3/comm_libs/mpi/lib -I/opt/nvidia/hpc_sdk/Linux_x86_64/23.3/comm_libs/mpi/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC -I/users/willend/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/../mccodelib/../../../miniconda3/include -Wl,-rpath,/users/willend/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/../mccodelib/../../../miniconda3/lib -L/users/willend/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/../mccodelib/../../../miniconda3/lib -lgsl -lgslcblas -DFUNNEL -std=c99 "./MAXIV_DanMAX_pxrd1d.c", line 1642: warning: arithmetic on pointer to void or function type [nonobject_pointer_arithmetic] if (MPI_Send((void*)(sbuf+offset*dsize), length, dtype, dest, tag++, MPI_COMM_WORLD) != MPI_SUCCESS) ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./MAXIV_DanMAX_pxrd1d.c", line 1669: warning: arithmetic on pointer to void or function type [nonobject_pointer_arithmetic] if (MPI_Recv((void*)(sbuf+offset*dsize), length, dtype, source, tag++, ^ "./MAXIV_DanMAX_pxrd1d.c", line 3387: warning: missing return statement at end of non-void function "siminfo_init" [implicit_return_from_non_void_function] } /* siminfo_init */ ^ "./MAXIV_DanMAX_pxrd1d.c", line 4318: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] unsigned long randstate[7]; ^ "./MAXIV_DanMAX_pxrd1d.c", line 4237: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./MAXIV_DanMAX_pxrd1d.c", line 5944: warning: variable "ret" was declared but never referenced [declared_but_not_referenced] int ret=1,stat=0,plane_stat=0; ^ "./MAXIV_DanMAX_pxrd1d.c", line 6117: warning: variable "D" was declared but never referenced [declared_but_not_referenced] double A,B,C,D,k; ^ "/usr/include/math.h", line 30: warning: #warning directive: A macro called log was already defined when was included. [warning_directive] # warning A macro called log was already defined when was included. ^ "/usr/include/math.h", line 31: warning: #warning directive: This will cause compilation problems. [warning_directive] # warning This will cause compilation problems. ^ "./MAXIV_DanMAX_pxrd1d.c", line 6672: warning: integer conversion resulted in a change of sign [integer_sign_change] Vars->OFF_polyidx = -1; ^ "./MAXIV_DanMAX_pxrd1d.c", line 7674: warning: variable "ratio" was set but never used [set_but_not_used] double ratio; ^ "./MAXIV_DanMAX_pxrd1d.c", line 8189: warning: variable "y0" is used before its value is set [used_before_set] if (y0 < ymin) y0=ymin; ^ "./MAXIV_DanMAX_pxrd1d.c", line 8191: warning: variable "y1" is used before its value is set [used_before_set] if (y1 < ymin) y1=ymin; ^ "./MAXIV_DanMAX_pxrd1d.c", line 10042: 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; ^ "./MAXIV_DanMAX_pxrd1d.c", line 10042: 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; ^ "./MAXIV_DanMAX_pxrd1d.c", line 10042: 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; ^ "./MAXIV_DanMAX_pxrd1d.c", line 10042: 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; ^ "./MAXIV_DanMAX_pxrd1d.c", line 10042: 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; ^ "./MAXIV_DanMAX_pxrd1d.c", line 10042: 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; ^ "./MAXIV_DanMAX_pxrd1d.c", line 10398: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./MAXIV_DanMAX_pxrd1d.c", line 11723: 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; ^ "./MAXIV_DanMAX_pxrd1d.c", line 11992: warning: conversion from pointer to smaller integer [pointer_conversion_loses_bits] int N=(unsigned int)((double **) pars)[0]; ^ "./MAXIV_DanMAX_pxrd1d.c", line 11970: warning: variable "status" was declared but never referenced [declared_but_not_referenced] int status; ^ "./MAXIV_DanMAX_pxrd1d.c", line 12081: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./MAXIV_DanMAX_pxrd1d.c", line 12280: warning: variable "R" was declared but never referenced [declared_but_not_referenced] double b_mu,R; ^ "./MAXIV_DanMAX_pxrd1d.c", line 12340: warning: variable "k2" is used before its value is set [used_before_set] qpd=csqrt(q*q - 8*k2* *(pp->delta) + I*8*k2* *(pp->beta)); ^ "./MAXIV_DanMAX_pxrd1d.c", line 12335: warning: variable "qinf" was declared but never referenced [declared_but_not_referenced] double complex qinf; ^ "./MAXIV_DanMAX_pxrd1d.c", line 12358: warning: variable "qinf" was declared but never referenced [declared_but_not_referenced] double complex qinf; ^ "./MAXIV_DanMAX_pxrd1d.c", line 12524: warning: variable "Arg1" was declared but never referenced [declared_but_not_referenced] double cos_theta,cos_theta1,Arg,Arg1,s,q; ^ "./MAXIV_DanMAX_pxrd1d.c", line 12525: warning: variable "k_new1" was declared but never referenced [declared_but_not_referenced] double k_new[3],k_new1[3],M,Sign,dd; ^ "./MAXIV_DanMAX_pxrd1d.c", line 13910: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./MAXIV_DanMAX_pxrd1d.c", line 19101: error: identifier "mcxtrace" is undefined gamma=(Ee*1e9)/(MELE/CELE*M_C*M_C);mcxtrace-comps/sources/Wiggler.comp/*the extra CELE is to convert to eV*/ ^ "./MAXIV_DanMAX_pxrd1d.c", line 19101: error: identifier "comps" is undefined gamma=(Ee*1e9)/(MELE/CELE*M_C*M_C);mcxtrace-comps/sources/Wiggler.comp/*the extra CELE is to convert to eV*/ ^ "./MAXIV_DanMAX_pxrd1d.c", line 19101: error: identifier "sources" is undefined gamma=(Ee*1e9)/(MELE/CELE*M_C*M_C);mcxtrace-comps/sources/Wiggler.comp/*the extra CELE is to convert to eV*/ ^ "./MAXIV_DanMAX_pxrd1d.c", line 19101: error: identifier "Wiggler" is undefined gamma=(Ee*1e9)/(MELE/CELE*M_C*M_C);mcxtrace-comps/sources/Wiggler.comp/*the extra CELE is to convert to eV*/ ^ "./MAXIV_DanMAX_pxrd1d.c", line 19477: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "./MAXIV_DanMAX_pxrd1d.c", line 19567: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./MAXIV_DanMAX_pxrd1d.c", line 19692: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "./MAXIV_DanMAX_pxrd1d.c", line 19944: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./MAXIV_DanMAX_pxrd1d.c", line 20038: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./MAXIV_DanMAX_pxrd1d.c", line 20038: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./MAXIV_DanMAX_pxrd1d.c", line 20039: warning: variable "p1" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./MAXIV_DanMAX_pxrd1d.c", line 20039: warning: variable "p2" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./MAXIV_DanMAX_pxrd1d.c", line 20039: warning: variable "p3" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./MAXIV_DanMAX_pxrd1d.c", line 20642: warning: incompatible redefinition of macro "exit" (declared at line 467) [bad_macro_redef] #define exit(...) noprintf() ^ "./MAXIV_DanMAX_pxrd1d.c", line 20786: warning: variable "l" was declared but never referenced [declared_but_not_referenced] double k,e,l,w_u,r,w; ^ "./MAXIV_DanMAX_pxrd1d.c", line 20786: warning: variable "r" was declared but never referenced [declared_but_not_referenced] double k,e,l,w_u,r,w; ^ "./MAXIV_DanMAX_pxrd1d.c", line 21371: warning: expression has no effect [expr_has_no_effect] 1; ^ "./MAXIV_DanMAX_pxrd1d.c", line 21407: warning: expression has no effect [expr_has_no_effect] 1; ^ "./MAXIV_DanMAX_pxrd1d.c", line 21333: warning: variable "alpha" was declared but never referenced [declared_but_not_referenced] double alpha,e,k,mu,mu0,delta,beta,f; ^ "./MAXIV_DanMAX_pxrd1d.c", line 21333: warning: variable "mu" was declared but never referenced [declared_but_not_referenced] double alpha,e,k,mu,mu0,delta,beta,f; ^ "./MAXIV_DanMAX_pxrd1d.c", line 21333: warning: variable "beta" was set but never used [set_but_not_used] double alpha,e,k,mu,mu0,delta,beta,f; ^ "./MAXIV_DanMAX_pxrd1d.c", line 21335: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,status=0; ^ "./MAXIV_DanMAX_pxrd1d.c", line 21543: 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; ^ "./MAXIV_DanMAX_pxrd1d.c", line 21543: 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; ^ "./MAXIV_DanMAX_pxrd1d.c", line 21543: 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; ^ "./MAXIV_DanMAX_pxrd1d.c", line 21499: warning: variable "Thetaout" was declared but never referenced [declared_but_not_referenced] double Thetaout; // (rad) angle between the crystal surface and the reflected ray ^ "./MAXIV_DanMAX_pxrd1d.c", line 21686: warning: variable "ty" was set but never used [set_but_not_used] double k,l0,l1,l2,l3,tx,ty,tz; ^ "./MAXIV_DanMAX_pxrd1d.c", line 21779: warning: variable "status" was declared but never referenced [declared_but_not_referenced] int status,hit; ^ "./MAXIV_DanMAX_pxrd1d.c", line 21780: warning: variable "l0" was declared but never referenced [declared_but_not_referenced] double l0,l1,l2,l3,tx,ty,tz; ^ "./MAXIV_DanMAX_pxrd1d.c", line 21780: warning: variable "l1" was declared but never referenced [declared_but_not_referenced] double l0,l1,l2,l3,tx,ty,tz; ^ "./MAXIV_DanMAX_pxrd1d.c", line 21780: warning: variable "l2" was declared but never referenced [declared_but_not_referenced] double l0,l1,l2,l3,tx,ty,tz; ^ "./MAXIV_DanMAX_pxrd1d.c", line 21780: warning: variable "l3" was declared but never referenced [declared_but_not_referenced] double l0,l1,l2,l3,tx,ty,tz; ^ "./MAXIV_DanMAX_pxrd1d.c", line 21780: warning: variable "tx" was declared but never referenced [declared_but_not_referenced] double l0,l1,l2,l3,tx,ty,tz; ^ "./MAXIV_DanMAX_pxrd1d.c", line 21780: warning: variable "ty" was declared but never referenced [declared_but_not_referenced] double l0,l1,l2,l3,tx,ty,tz; ^ "./MAXIV_DanMAX_pxrd1d.c", line 21780: warning: variable "tz" was declared but never referenced [declared_but_not_referenced] double l0,l1,l2,l3,tx,ty,tz; ^ "./MAXIV_DanMAX_pxrd1d.c", line 21872: warning: variable "E" was declared but never referenced [declared_but_not_referenced] double E,mu,f,rhoel,dl,d_total,e,k,delta,beta,Refractive_Index_Re,Refractive_Index_Im,w; ^ "./MAXIV_DanMAX_pxrd1d.c", line 21872: warning: variable "Refractive_Index_Im" was set but never used [set_but_not_used] double E,mu,f,rhoel,dl,d_total,e,k,delta,beta,Refractive_Index_Re,Refractive_Index_Im,w; ^ "./MAXIV_DanMAX_pxrd1d.c", line 21875: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i=0,nr; ^ "./MAXIV_DanMAX_pxrd1d.c", line 22023: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./MAXIV_DanMAX_pxrd1d.c", line 22024: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./MAXIV_DanMAX_pxrd1d.c", line 22027: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./MAXIV_DanMAX_pxrd1d.c", line 22028: warning: variable "nb_refl" was declared but never referenced [declared_but_not_referenced] int nb_refl = line_info.nb_refl; ^ "./MAXIV_DanMAX_pxrd1d.c", line 22029: warning: variable "nb_refl_count" was declared but never referenced [declared_but_not_referenced] int nb_refl_count = line_info.nb_refl_count; ^ "./MAXIV_DanMAX_pxrd1d.c", line 22030: warning: variable "kcache" was declared but never referenced [declared_but_not_referenced] double kcache = line_info.k; ^ "./MAXIV_DanMAX_pxrd1d.c", line 22032: warning: variable "k_min" was declared but never referenced [declared_but_not_referenced] double k_min = line_info.k_min; ^ "./MAXIV_DanMAX_pxrd1d.c", line 22033: warning: variable "k_max" was declared but never referenced [declared_but_not_referenced] double k_max = line_info.k_max; ^ "./MAXIV_DanMAX_pxrd1d.c", line 22034: warning: variable "lfree" was declared but never referenced [declared_but_not_referenced] double lfree = line_info.lfree; ^ "./MAXIV_DanMAX_pxrd1d.c", line 22036: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./MAXIV_DanMAX_pxrd1d.c", line 22037: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./MAXIV_DanMAX_pxrd1d.c", line 22038: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./MAXIV_DanMAX_pxrd1d.c", line 22040: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./MAXIV_DanMAX_pxrd1d.c", line 22524: warning: variable "k" was declared but never referenced [declared_but_not_referenced] int i,j,k; ^ "./MAXIV_DanMAX_pxrd1d.c", line 22525: warning: variable "e" was declared but never referenced [declared_but_not_referenced] double e,p2; ^ "./MAXIV_DanMAX_pxrd1d.c", line 26933: warning: variable "z_c" was set but never used [set_but_not_used] double z_c,zdepth,w; ^ "./MAXIV_DanMAX_pxrd1d.c", line 26939: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j=0; ^ "./MAXIV_DanMAX_pxrd1d.c", line 27639: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./MAXIV_DanMAX_pxrd1d.c", line 27640: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./MAXIV_DanMAX_pxrd1d.c", line 1347: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./MAXIV_DanMAX_pxrd1d.c", line 2701: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ 4 errors detected in the compilation of "./MAXIV_DanMAX_pxrd1d.c".