INFO: No output directory specified (--dir)
INFO: Using directory: "Test_SX_20260707_212854"
INFO: Regenerating c-file: Test_SX.c
DEBUG: CMD: /u/data/pkwi/WORK/micromamba/envs/mcxtrace-dev/bin/mcxtrace -t -o ./Test_SX.c Test_SX.instr

-----------------------------------------------------------
WARNING: Existing (COPY) EXTEND block in COMPONENT SX:
  EXTEND %{
    if(!SCATTERED) ABSORB;
    else if (hkl_info.type == 'c') Stype=DIFFRACTION;
    else Stype=FLUORESCENCE;
  %}

is overwritten by:
  EXTEND %{
    if (SCATTERED) {
      if (hkl_info.type == 'c') Stype=DIFFRACTION;
      else Stype=FLUORESCENCE;
    } else ABSORB;
  %}
-----------------------------------------------------------
CFLAGS=  @XRLFLAGS@ -DUSE_OFF  -DFUNNEL 
          
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.


WARNING:
 The parameter surf_dir 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.


WARNING:
 The parameter mosaic_AB of sampleF 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 sampleF is NOACC, CPUONLY=1
-> FUNNEL mode enabled, SPLIT within buffer.
-> CPU section from component sampleF
Component FluoG is NOACC, CPUONLY=1
-> FUNNEL mode enabled, SPLIT within buffer.
-> GPU kernel from component SX

-----------------------------------------------------------
DEBUG: CMD: /u/data/pkwi/WORK/micromamba/envs/mcxtrace-dev/bin/mcxtrace finished
INFO: Recompiling: ./Test_SX.out
DEBUG: CMD: nvc -o ./Test_SX.out ./Test_SX.c -lm -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/WORK/micromamba/envs/mcxtrace-dev/lib -Wl,-rpath-link,/u/data/pkwi/WORK/micromamba/envs/mcxtrace-dev/lib -L/u/data/pkwi/WORK/micromamba/envs/mcxtrace-dev/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/WORK/micromamba/envs/mcxtrace-dev/include -DUSE_MPI -lmpi -fast -Minfo=accel -acc=gpu -gpu=mem:managed -DOPENACC -I/u/data/pkwi/WORK/micromamba/envs/mcxtrace-dev/include -Wl,-rpath,/u/data/pkwi/WORK/micromamba/envs/mcxtrace-dev/lib -L/u/data/pkwi/WORK/micromamba/envs/mcxtrace-dev/lib -lxrl -DUSE_OFF -DFUNNEL
"./Test_SX.c", line 88: warning: Routine "mcgenstate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  _class_particle mcgenstate(void);
                  ^

Remark: individual warnings can be suppressed with "--diag_suppress <warning-name>"

"./Test_SX.c", line 90: warning: Routine "mcsetstate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  _class_particle mcsetstate(double x, double y, double z, double kx, double ky, double kz,
                  ^

"./Test_SX.c", line 93: warning: Routine "mcgetstate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  _class_particle mcgetstate(_class_particle mcphoton, double *x, double *y, double *z, double *kx, double *ky, double *kz,
                  ^

"./Test_SX.c", line 106: warning: Routine "particle_getvar" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  double particle_getvar(_class_particle *p, char *name, int *suc);
         ^

"./Test_SX.c", line 110: warning: Routine "str_comp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  int str_comp(char *str1, char *str2);
      ^

"./Test_SX.c", line 140: warning: Routine "particle_getvar_void" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  void* particle_getvar_void(_class_particle *p, char *name, int *suc);
        ^

"./Test_SX.c", line 110: warning: Routine "str_comp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  int str_comp(char *str1, char *str2);
      ^

"./Test_SX.c", line 171: warning: Routine "particle_setvar_void" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  int particle_setvar_void(_class_particle *, char *, void*);
      ^

"./Test_SX.c", line 195: warning: Routine "particle_setvar_void_array" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  int particle_setvar_void_array(_class_particle *, char *, void*, int);
      ^

"./Test_SX.c", line 206: warning: Routine "particle_restore" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  void particle_restore(_class_particle *p, _class_particle *p0);
       ^

"./Test_SX.c", line 217: warning: Routine "particle_getuservar_byid" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  double particle_getuservar_byid(_class_particle *p, int id, int *suc){
         ^

"./Test_SX.c", line 228: warning: Routine "particle_uservar_init" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  void particle_uservar_init(_class_particle *p){
       ^

"./Test_SX.c", line 296: warning: Routine "noprintf" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  int noprintf();
      ^

"./Test_SX.c", line 298: warning: Routine "str_len" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  size_t str_len(const char *s);
         ^

"./Test_SX.c", line 649: warning: Routine "mcget_ncount" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  unsigned long long int mcget_ncount(void);            /* wrapper to set mcncount */
                         ^

"./Test_SX.c", line 872: warning: Routine "_randnorm2" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  double _randnorm2(randstate_t* state);
         ^

"./Test_SX.c", line 889: warning: Routine "kiss_srandom" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  uint64_t *kiss_srandom(uint64_t state[7], uint64_t seed);
            ^

"./Test_SX.c", line 891: warning: Routine "kiss_random" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  uint64_t kiss_random(uint64_t state[7]);
           ^

"./Test_SX.c", line 899: warning: Routine "_rand01" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  double _rand01(randstate_t* state);
         ^

"./Test_SX.c", line 901: warning: Routine "_randpm1" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  double _randpm1(randstate_t* state);
         ^

"./Test_SX.c", line 903: warning: Routine "_rand0max" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  double _rand0max(double max, randstate_t* state);
         ^

"./Test_SX.c", line 905: warning: Routine "_randminmax" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  double _randminmax(double min, double max, randstate_t* state);
         ^

"./Test_SX.c", line 907: warning: Routine "_randtriangle" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  double _randtriangle(randstate_t* state);
         ^

"./Test_SX.c", line 910: warning: Routine "_rand01_opague" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  double _rand01_opague(void* state);
         ^

"./Test_SX.c", line 1006: warning: Routine "coords_set" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  Coords coords_set(MCNUM x, MCNUM y, MCNUM z);
         ^

"./Test_SX.c", line 1008: warning: Routine "coords_get" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  Coords coords_get(Coords a, MCNUM *x, MCNUM *y, MCNUM *z);
         ^

"./Test_SX.c", line 1010: warning: Routine "coords_add" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  Coords coords_add(Coords a, Coords b);
         ^

"./Test_SX.c", line 1012: warning: Routine "coords_sub" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  Coords coords_sub(Coords a, Coords b);
         ^

"./Test_SX.c", line 1014: warning: Routine "coords_neg" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  Coords coords_neg(Coords a);
         ^

"./Test_SX.c", line 1016: warning: Routine "coords_scale" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  Coords coords_scale(Coords b, double scale);
         ^

"./Test_SX.c", line 1018: warning: Routine "coords_sp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  double coords_sp(Coords a, Coords b);
         ^

"./Test_SX.c", line 1020: warning: Routine "coords_xp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  Coords coords_xp(Coords b, Coords c);
         ^

"./Test_SX.c", line 1022: warning: Routine "coords_len" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  double coords_len(Coords a);
         ^

"./Test_SX.c", line 4195: warning: variable "exists" was set but never used [set_but_not_used]
      int exists=0;
          ^

"./Test_SX.c", line 4653: warning: variable "num" was declared but never referenced [declared_but_not_referenced]
          int num = 3;
              ^

"./Test_SX.c", line 5108: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced]
      randstate_t randstate[7];
                  ^

"./Test_SX.c", line 5027: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced]
    long newlen = 0;
         ^

"./Test_SX.c", line 6369: warning: variable "status" was set but never used [set_but_not_used]
        int status;
            ^

"./Test_SX.c", line 6837: warning: variable "ret" was declared but never referenced [declared_but_not_referenced]
    int ret=1,stat=0,plane_stat=0;
        ^

"./Test_SX.c", line 7010: warning: variable "D" was declared but never referenced [declared_but_not_referenced]
    double A,B,C,D,k;
                 ^

"./Test_SX.c", line 7259: warning: Routine "Table_Index" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  double   Table_Index(t_Table Table,   long i, long j); /* get indexed value */
           ^

"./Test_SX.c", line 7261: warning: Routine "Table_Value" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  double   Table_Value(t_Table Table, double X, long j); /* search X in 1st column and return interpolated value in j-column */
           ^

"./Test_SX.c", line 7268: warning: Routine "Table_Value2d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  double   Table_Value2d(t_Table Table, double X, double Y);    /* same as Table_Index with non-integer indices and 2d interpolation */
           ^

"./Test_SX.c", line 7288: warning: Routine "Table_Interp1d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  double Table_Interp1d(double x, double x1, double y1, double x2, double y2);
         ^

"./Test_SX.c", line 7290: warning: Routine "Table_Interp1d_nearest" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  double Table_Interp1d_nearest(double x, double x1, double y1, double x2, double y2);
         ^

"./Test_SX.c", line 7292: warning: Routine "Table_Interp2d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  double Table_Interp2d(double x, double y, double x1, double y1, double x2, double y2,
         ^

"./Test_SX.c", line 8853: warning: Routine "off_intersect_all" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  int off_intersect_all(double* t0, double* t3,
      ^

"./Test_SX.c", line 8876: warning: Routine "off_intersect" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  int off_intersect(double* t0, double* t3,
      ^

"./Test_SX.c", line 8897: warning: Routine "off_x_intersect" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  int off_x_intersect(double *l0,double *l3,
      ^

"./Test_SX.c", line 8984: warning: Routine "off_F" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  double off_F(double x, double y,double z,double A,double B,double C,double D) {
         ^

"./Test_SX.c", line 8989: warning: Routine "off_sign" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  char off_sign(double a) {
       ^

"./Test_SX.c", line 8998: warning: Routine "off_normal" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  void off_normal(Coords* n, polygon p)
       ^

"./Test_SX.c", line 9024: warning: Routine "off_pnpoly" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  int off_pnpoly(polygon p, Coords v)
      ^

"./Test_SX.c", line 9027: 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_SX.c", line 9027: 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_SX.c", line 9027: 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_SX.c", line 9027: 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_SX.c", line 9027: 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_SX.c", line 9027: 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_SX.c", line 9087: warning: Routine "off_intersectPoly" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  int off_intersectPoly(intersection *inter, Coords a, Coords b, polygon p)
      ^

"./Test_SX.c", line 9217: warning: Routine "off_init_planes" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  void off_init_planes(Coords a, Coords b,
       ^

"./Test_SX.c", line 9261: warning: Routine "off_clip_3D_mod" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  int off_clip_3D_mod(intersection* t, Coords a, Coords b,
      ^

"./Test_SX.c", line 9382: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced]
    double plane_Eq [4];
           ^

"./Test_SX.c", line 9494: warning: Routine "off_compare" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  int off_compare (void const *a, void const *b)
      ^

"./Test_SX.c", line 9506: warning: Routine "off_cleanDouble" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  int off_cleanDouble(intersection* t, int* t_size)
      ^

"./Test_SX.c", line 9541: warning: Routine "off_cleanInOut" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  int off_cleanInOut(intersection* t, int* t_size)
      ^

"./Test_SX.c", line 9797: warning: Routine "Min_int" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  int Min_int(int x, int y) {
      ^

"./Test_SX.c", line 9803: warning: Routine "merge" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  void merge(intersection *arr, int l, int m, int r)
       ^

"./Test_SX.c", line 9868: warning: Routine "gpusort" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  void gpusort(intersection *arr, int size)
       ^

"./Test_SX.c", line 10327: warning: Routine "SX_list_compare" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
    SX_list_compare (void const* a, void const* b) {
    ^

"./Test_SX.c", line 10467: warning: variable "flag" was declared but never referenced [declared_but_not_referenced]
      char flag = 0;
           ^

"./Test_SX.c", line 10978: warning: Routine "hkl_search" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
    hkl_search (struct hkl_data* L, void* TT, int count, double V0, double kix, double kiy, double kiz, double tau_max, double* coh_refl, double* coh_xsect) {
    ^

"./Test_SX.c", line 11081: warning: Routine "hkl_select" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
    hkl_select (struct tau_data* T, int tau_count, double coh_refl, double* sum, _class_particle* _particle) {
    ^

"./Test_SX.c", line 11097: warning: Routine "randrotate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
    randrotate (double* nx, double* ny, double* nz, double a, double b, double c) {
    ^

"./Test_SX.c", line 11106: warning: Routine "randderotate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
    randderotate (double* nx, double* ny, double* nz, double a, double b, double c) {
    ^

"./Test_SX.c", line 11116: warning: Routine "vec_rotate_2d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
    vec_rotate_2d (double* x, double* y, double angle) {
    ^

"./Test_SX.c", line 11139: warning: variable "status" was set but never used [set_but_not_used]
      int status;
          ^

"./Test_SX.c", line 11141: warning: variable "Z" was set but never used [set_but_not_used]
      double Z;
             ^

"./Test_SX.c", line 14551: warning: variable "tc2" was set but never used [set_but_not_used]
      Coords tc1, tc2;
                  ^

"./Test_SX.c", line 14526: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced]
    int current_setpos_index = 1;
        ^

"./Test_SX.c", line 14609: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced]
    int current_setpos_index = 2;
        ^

"./Test_SX.c", line 14658: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced]
    int current_setpos_index = 3;
        ^

"./Test_SX.c", line 14802: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced]
    int current_setpos_index = 4;
        ^

"./Test_SX.c", line 14962: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced]
    int current_setpos_index = 5;
        ^

"./Test_SX.c", line 15072: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced]
    int current_setpos_index = 6;
        ^

"./Test_SX.c", line 15216: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced]
    int current_setpos_index = 7;
        ^

"./Test_SX.c", line 15280: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced]
    int current_setpos_index = 8;
        ^

"./Test_SX.c", line 15389: warning: variable "status" was set but never used [set_but_not_used]
      int status = 0;
          ^

"./Test_SX.c", line 15570: warning: variable "surf_dir_sum" was declared but never referenced [declared_but_not_referenced]
      double surf_dir_sum = 0;
             ^

"./Test_SX.c", line 15489: warning: variable "as" was declared but never referenced [declared_but_not_referenced]
    double as, bs, cs;
           ^

"./Test_SX.c", line 15489: warning: variable "bs" was declared but never referenced [declared_but_not_referenced]
    double as, bs, cs;
               ^

"./Test_SX.c", line 15489: warning: variable "cs" was declared but never referenced [declared_but_not_referenced]
    double as, bs, cs;
                   ^

"./Test_SX.c", line 15806: warning: variable "E0" was declared but never referenced [declared_but_not_referenced]
    double     E0, dE;
               ^

"./Test_SX.c", line 15806: warning: variable "dE" was declared but never referenced [declared_but_not_referenced]
    double     E0, dE;
                   ^

"./Test_SX.c", line 16496: warning: incompatible redefinition of macro "exit" (declared at line 628) [bad_macro_redef]
  #define exit(...) noprintf()
          ^

"./Test_SX.c", line 16508: warning: Routine "class_Source_flat_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  void class_Source_flat_trace(_class_Source_flat *_comp
       ^

"./Test_SX.c", line 16647: warning: Routine "class_Single_crystal_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  void class_Single_crystal_trace(_class_Single_crystal *_comp
       ^

"./Test_SX.c", line 16709: warning: variable "k" was declared but never referenced [declared_but_not_referenced]
    double k;                   /* photon wave vector */
           ^

"./Test_SX.c", line 16710: 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_SX.c", line 16710: 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_SX.c", line 16710: 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_SX.c", line 16711: warning: variable "rho" was declared but never referenced [declared_but_not_referenced]
    double rho;
           ^

"./Test_SX.c", line 16712: warning: variable "diff" was declared but never referenced [declared_but_not_referenced]
    double diff;                      /* Deviation from Bragg condition */
           ^

"./Test_SX.c", line 16713: warning: variable "ox" was declared but never referenced [declared_but_not_referenced]
    double ox, oy, oz;                /* Origin of Ewald sphere tangent plane */
           ^

"./Test_SX.c", line 16713: warning: variable "oy" was declared but never referenced [declared_but_not_referenced]
    double ox, oy, oz;                /* Origin of Ewald sphere tangent plane */
               ^

"./Test_SX.c", line 16713: warning: variable "oz" was declared but never referenced [declared_but_not_referenced]
    double ox, oy, oz;                /* Origin of Ewald sphere tangent plane */
                   ^

"./Test_SX.c", line 16714: warning: variable "b1x" was declared but never referenced [declared_but_not_referenced]
    double b1x, b1y, b1z;             /* First vector spanning tangent plane */
           ^

"./Test_SX.c", line 16714: warning: variable "b1y" was declared but never referenced [declared_but_not_referenced]
    double b1x, b1y, b1z;             /* First vector spanning tangent plane */
                ^

"./Test_SX.c", line 16714: warning: variable "b1z" was declared but never referenced [declared_but_not_referenced]
    double b1x, b1y, b1z;             /* First vector spanning tangent plane */
                     ^

"./Test_SX.c", line 16715: warning: variable "b2x" was declared but never referenced [declared_but_not_referenced]
    double b2x, b2y, b2z;             /* Second vector spanning tangent plane */
           ^

"./Test_SX.c", line 16715: warning: variable "b2y" was declared but never referenced [declared_but_not_referenced]
    double b2x, b2y, b2z;             /* Second vector spanning tangent plane */
                ^

"./Test_SX.c", line 16715: warning: variable "b2z" was declared but never referenced [declared_but_not_referenced]
    double b2x, b2y, b2z;             /* Second vector spanning tangent plane */
                     ^

"./Test_SX.c", line 16716: warning: variable "n11" was declared but never referenced [declared_but_not_referenced]
    double n11, n12, n22;             /* 2D Gauss description matrix N */
           ^

"./Test_SX.c", line 16716: warning: variable "n12" was declared but never referenced [declared_but_not_referenced]
    double n11, n12, n22;             /* 2D Gauss description matrix N */
                ^

"./Test_SX.c", line 16716: warning: variable "n22" was declared but never referenced [declared_but_not_referenced]
    double n11, n12, n22;             /* 2D Gauss description matrix N */
                     ^

"./Test_SX.c", line 16717: warning: variable "det_N" was declared but never referenced [declared_but_not_referenced]
    double det_N;                     /* Determinant of N */
           ^

"./Test_SX.c", line 16718: warning: variable "inv_n11" was declared but never referenced [declared_but_not_referenced]
    double inv_n11, inv_n12, inv_n22; /* Inverse of N */
           ^

"./Test_SX.c", line 16718: warning: variable "inv_n12" was declared but never referenced [declared_but_not_referenced]
    double inv_n11, inv_n12, inv_n22; /* Inverse of N */
                    ^

"./Test_SX.c", line 16718: warning: variable "inv_n22" was declared but never referenced [declared_but_not_referenced]
    double inv_n11, inv_n12, inv_n22; /* Inverse of N */
                             ^

"./Test_SX.c", line 16719: 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_SX.c", line 16719: 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_SX.c", line 16719: 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_SX.c", line 16720: warning: variable "det_L" was declared but never referenced [declared_but_not_referenced]
    double det_L;                     /* Determinant of L */
           ^

"./Test_SX.c", line 16721: 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_SX.c", line 16721: 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_SX.c", line 16722: warning: variable "y0x" was declared but never referenced [declared_but_not_referenced]
    double y0x, y0y;                  /* Center of 2D Gauss in plane coordinates */
           ^

"./Test_SX.c", line 16722: warning: variable "y0y" was declared but never referenced [declared_but_not_referenced]
    double y0x, y0y;                  /* Center of 2D Gauss in plane coordinates */
                ^

"./Test_SX.c", line 16723: warning: variable "alpha" was declared but never referenced [declared_but_not_referenced]
    double alpha;                     /* Offset of 2D Gauss center from 3D center */
           ^

"./Test_SX.c", line 16729: warning: variable "coh_xsect" was declared but never referenced [declared_but_not_referenced]
    double coh_xsect, coh_xlen;       /* Coherent cross section and length */
           ^

"./Test_SX.c", line 16730: warning: variable "tot_xsect" was declared but never referenced [declared_but_not_referenced]
    double tot_xsect, tot_xlen;       /* Total cross section and length */
           ^

"./Test_SX.c", line 16745: 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_SX.c", line 17465: warning: variable "flag" was declared but never referenced [declared_but_not_referenced]
      int    flag=0;
             ^

"./Test_SX.c", line 17581: warning: variable "alpha" was declared but never referenced [declared_but_not_referenced]
      double theta, dsigma, alpha;
                            ^

"./Test_SX.c", line 18080: warning: variable "flag" was declared but never referenced [declared_but_not_referenced]
      int    flag=0;
             ^

"./Test_SX.c", line 18401: warning: Routine "class_PSD_monitor_4PI_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type]
  void class_PSD_monitor_4PI_trace(_class_PSD_monitor_4PI *_comp
       ^

"./Test_SX.c", line 20562: warning: variable "t" was declared but never referenced [declared_but_not_referenced]
    time_t  t;
            ^

"./Test_SX.c", line 20563: warning: variable "ct" was set but never used [set_but_not_used]
    clock_t ct;
            ^

"./Test_SX.c", line 1516: warning: variable "mcstartdate" was set but never used [set_but_not_used]
  static   long mcstartdate            = 0; /* start simulation time */
                ^

"./Test_SX.c", line 2990: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced]
  static char *strcpy_valid(char *valid, char *original)
               ^

mcgenstate:
     99, Generating acc routine seq
         Generating NVIDIA GPU code
particle_getvar:
    113, Generating acc routine seq
         Generating NVIDIA GPU code
particle_getvar_void:
    147, Generating acc routine seq
         Generating NVIDIA GPU code
particle_setvar_void:
    173, Generating acc routine seq
         Generating NVIDIA GPU code
particle_setvar_void_array:
    197, Generating acc routine seq
         Generating NVIDIA GPU code
particle_restore:
    208, Generating acc routine seq
         Generating NVIDIA GPU code
particle_getuservar_byid:
    217, Generating acc routine seq
         Generating NVIDIA GPU code
particle_uservar_init:
    228, Generating acc routine seq
         Generating NVIDIA GPU code
noprintf:
   1565, Generating acc routine seq
         Generating NVIDIA GPU code
str_comp:
   1569, Generating acc routine seq
         Generating NVIDIA GPU code
str_len:
   1578, Generating acc routine seq
         Generating NVIDIA GPU code
mcget_ncount:
   4271, Generating acc routine seq
         Generating NVIDIA GPU code
coords_set:
   4705, Generating acc routine seq
         Generating NVIDIA GPU code
coords_get:
   4716, Generating acc routine seq
         Generating NVIDIA GPU code
coords_add:
   4725, Generating acc routine seq
         Generating NVIDIA GPU code
coords_sub:
   4737, Generating acc routine seq
         Generating NVIDIA GPU code
coords_neg:
   4749, Generating acc routine seq
         Generating NVIDIA GPU code
coords_scale:
   4759, Generating acc routine seq
         Generating NVIDIA GPU code
coords_sp:
   4769, Generating acc routine seq
         Generating NVIDIA GPU code
coords_xp:
   4777, Generating acc routine seq
         Generating NVIDIA GPU code
coords_len:
   4787, Generating acc routine seq
         Generating NVIDIA GPU code
coords_print:
   4809, Generating acc routine seq
         Generating NVIDIA GPU code
coords_norm:
   4816, Generating acc routine seq
         Generating NVIDIA GPU code
rot_set_rotation:
   4862, Generating acc routine seq
         Generating NVIDIA GPU code
rot_test_identity:
   4897, Generating acc routine seq
         Generating NVIDIA GPU code
rot_mul:
   4908, Generating acc routine seq
         Generating NVIDIA GPU code
rot_copy:
   4925, Generating acc routine seq
         Generating NVIDIA GPU code
rot_transpose:
   4936, Generating acc routine seq
         Generating NVIDIA GPU code
rot_apply:
   4952, Generating acc routine seq
         Generating NVIDIA GPU code
vec_prod_func:
   4981, Generating acc routine seq
         Generating NVIDIA GPU code
scalar_prod:
   4992, Generating acc routine seq
         Generating NVIDIA GPU code
norm_func:
   4996, Generating acc routine seq
         Generating NVIDIA GPU code
sort_absorb_last:
   5031, Generating present(particles[:buffer_len],pbuffer[:buffer_len])
         Generating implicit firstprivate(tidx)
         Generating NVIDIA GPU code
       5038, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */
       5047, #pragma acc loop seq
   5031, Generating implicit copy(lens[:]) [if not already present]
   5038, Generating implicit firstprivate(ll,l)
   5049, Accelerator restriction: induction variable live-out from loop: i
   5050, Accelerator restriction: induction variable live-out from loop: i
   5051, Accelerator restriction: induction variable live-out from loop: i
   5052, Accelerator restriction: induction variable live-out from loop: i
   5054, Accelerator restriction: induction variable live-out from loop: j
   5055, Accelerator restriction: induction variable live-out from loop: j
   5056, Accelerator restriction: induction variable live-out from loop: j
   5057, Accelerator restriction: induction variable live-out from loop: j
   5079, Generating present(pbuffer[:buffer_len])
         Generating implicit firstprivate(tidx)
         Generating NVIDIA GPU code
       5083, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */
       5086, #pragma acc loop seq
   5079, Generating implicit copyin(lens[:]) [if not already present]
         Generating implicit copy(particles[:]) [if not already present]
         Generating implicit copyin(los[:]) [if not already present]
   5086, Generating implicit firstprivate(l)
   5103, Generating present(particles[:buffer_len])
         Generating implicit firstprivate(accumlen,tidx,mult)
         Generating NVIDIA GPU code
       5107, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */
       5114, #pragma acc loop seq
   5103, Local memory used for targetbuffer,sourcebuffer
mccoordschange:
   5173, Generating acc routine seq
         Generating NVIDIA GPU code
mccoordschange_polarisation:
   5204, Generating acc routine seq
         Generating NVIDIA GPU code
normal_vec:
   5221, Generating acc routine seq
         Generating NVIDIA GPU code
solve_2nd_order:
   5320, Generating acc routine seq
         Generating NVIDIA GPU code
_randvec_target_circle:
   5404, Generating acc routine seq
         Generating NVIDIA GPU code
_randvec_target_rect_angular:
   5470, Generating acc routine seq
         Generating NVIDIA GPU code
_randvec_target_rect_real:
   5547, Generating acc routine seq
         Generating NVIDIA GPU code
kiss_srandom:
   5819, Generating acc routine seq
         Generating NVIDIA GPU code
kiss_random:
   5831, Generating acc routine seq
         Generating NVIDIA GPU code
_hash:
   5863, Generating acc routine seq
         Generating NVIDIA GPU code
_randnorm2:
   5904, Generating acc routine seq
         Generating NVIDIA GPU code
_randtriangle:
   5915, Generating acc routine seq
         Generating NVIDIA GPU code
_rand01:
   5920, Generating acc routine seq
         Generating NVIDIA GPU code
_rand01_opague:
   5927, Generating acc routine seq
         Generating NVIDIA GPU code
_randpm1:
   5938, Generating acc routine seq
         Generating NVIDIA GPU code
_rand0max:
   5946, Generating acc routine seq
         Generating NVIDIA GPU code
_randminmax:
   5953, Generating acc routine seq
         Generating NVIDIA GPU code
mcsetstate:
   6621, Generating acc routine seq
         Generating NVIDIA GPU code
mcgetstate:
   6657, Generating acc routine seq
         Generating NVIDIA GPU code
inside_rectangle:
   6732, Generating acc routine seq
         Generating NVIDIA GPU code
box_intersect:
   6748, Generating acc routine seq
         Generating NVIDIA GPU code
cylinder_intersect:
   6834, Generating acc routine seq
         Generating NVIDIA GPU code
sphere_intersect:
   6902, Generating acc routine seq
         Generating NVIDIA GPU code
Table_Index:
   8069, Generating acc routine seq
         Generating NVIDIA GPU code
Table_Value:
   8137, Generating acc routine seq
         Generating NVIDIA GPU code
Table_Value2d:
   8216, Generating acc routine seq
         Generating NVIDIA GPU code
Table_Interp1d:
   8684, Generating acc routine seq
         Generating NVIDIA GPU code
Table_Interp1d_nearest:
   8700, Generating acc routine seq
         Generating NVIDIA GPU code
Table_Interp2d:
   8718, Generating acc routine seq
         Generating NVIDIA GPU code
off_F:
   8984, Generating acc routine seq
         Generating NVIDIA GPU code
off_sign:
   8989, Generating acc routine seq
         Generating NVIDIA GPU code
off_normal:
   8999, Generating acc routine seq
         Generating NVIDIA GPU code
off_pnpoly:
   9025, Generating acc routine seq
         Generating NVIDIA GPU code
off_intersectPoly:
   9088, Generating acc routine seq
         Generating NVIDIA GPU code
off_init_planes:
   9219, Generating acc routine seq
         Generating NVIDIA GPU code
off_clip_3D_mod:
   9264, Generating acc routine seq
         Generating NVIDIA GPU code
off_clip_3D_mod_grav:
   9379, Generating acc routine seq
         Generating NVIDIA GPU code
off_compare:
   9495, Generating acc routine seq
         Generating NVIDIA GPU code
off_cleanDouble:
   9507, Generating acc routine seq
         Generating NVIDIA GPU code
off_cleanInOut:
   9542, Generating acc routine seq
         Generating NVIDIA GPU code
Min_int:
   9797, Generating acc routine seq
         Generating NVIDIA GPU code
merge:
   9804, Generating acc routine seq
         Generating NVIDIA GPU code
         CUDA global memory used for L,R
gpusort:
   9869, Generating acc routine seq
         Generating NVIDIA GPU code
p_to_quadratic:
   9912, Generating implicit acc routine seq
         Generating implicit acc routine seq
         Generating NVIDIA GPU code
quadraticSolve:
   9927, Generating implicit acc routine seq
         Generating implicit acc routine seq
         Generating NVIDIA GPU code
off_intersect_all:
   9981, Generating acc routine seq
         Generating NVIDIA GPU code
off_intersect:
  10098, Generating acc routine seq
         Generating NVIDIA GPU code
off_x_intersect:
  10120, Generating acc routine seq
         Generating NVIDIA GPU code
SX_list_compare:
  10327, Generating acc routine seq
         Generating NVIDIA GPU code
hkl_search:
  10978, Generating acc routine seq
         Generating NVIDIA GPU code
hkl_select:
  11081, Generating acc routine seq
         Generating NVIDIA GPU code
randrotate:
  11097, Generating acc routine seq
         Generating NVIDIA GPU code
randderotate:
  11106, Generating acc routine seq
         Generating NVIDIA GPU code
vec_rotate_2d:
  11116, Generating acc routine seq
         Generating NVIDIA GPU code
init:
  16467, Generating update device(_src_var,_sample_var,_sampleF_var,_sample_pos_var,_psd_Diff_var,_FluoG_var,_instrument_var,_psd4pi_var,_SX_var)
class_Source_flat_trace:
  16509, Generating acc routine seq
         Generating NVIDIA GPU code
class_Single_crystal_trace:
  16648, Generating acc routine seq
         Generating NVIDIA GPU code
class_PSD_monitor_4PI_trace:
  18402, Generating acc routine seq
         Generating NVIDIA GPU code
raytrace_all_funnel:
  18803, Generating present(particles[:livebatchsize])
         Generating implicit firstprivate(livebatchsize)
         Generating NVIDIA GPU code
      18807, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */
  18807, Generating implicit firstprivate(mpi_node_rank,_particle,ncount,seed)
  18816, Generating present(particles[:livebatchsize])
         Generating implicit firstprivate(livebatchsize)
         Generating NVIDIA GPU code
      18821, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */
  18816, Local memory used for .inl_.inl_c_1998_19284,.inl_.inl_.inl_b_1972_2004_19289,.inl_.inl_.inl_.X2542_1971_2003_19288,.inl_.inl_b_1994_19283,.inl_.inl_c_1987_19273,.inl_.inl_.inl_b_1972_1993_19278,.inl_.inl_.inl_.X2542_1971_1992_19277,.inl_.inl_b_1983_19272,.inl_.inl_.X2526_1982_19267,.inl_.inl_c_1979_19266,.inl_c_19297,.inl_.inl_b_1978_19264,.inl_.inl_.X2542_1977_19263,.inl_b_19256,.inl_.X2525_19255,.inl_.X2526_19250,.inl_c_19258,.inl_.X2524_19246,.inl_a_19242,_particle_save,.inl_c_19308,.inl_.inl_c_1987_19323,.inl_.inl_.inl_b_1972_1993_19328,.inl_.inl_.inl_.X2542_1971_1992_19327,.inl_.inl_b_1983_19322,.inl_.inl_c_1979_19316,.inl_.inl_.inl_.X2542_1971_2003_19338,.inl_.inl_.X2542_1977_19313,.inl_.inl_b_1978_19314,.inl_.X2526_19300,.inl_.inl_b_1994_19333,.inl_c_19247,.inl_.inl_.inl_b_1972_2004_19339,.inl_.inl_.X2526_1982_19317,.inl_a_19292,.inl_.X2524_19296,.inl_.X2525_19305,.inl_b_19306,.inl_.inl_c_1998_19334
  18905, Generating present(particles[:livebatchsize])
         Generating implicit firstprivate(livebatchsize)
         Generating NVIDIA GPU code
      18908, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */
  18905, Local memory used for .inl_.inl_c_1998_19534,.inl_.inl_.inl_b_1972_2004_19539,.inl_.inl_.inl_.X2542_1971_2003_19538,.inl_.inl_b_1994_19533,.inl_.inl_c_1987_19523,.inl_.inl_.inl_b_1972_1993_19528,.inl_.inl_.inl_.X2542_1971_1992_19527,.inl_.inl_b_1983_19522,.inl_.inl_.X2526_1982_19517,.inl_.inl_c_1979_19516,.inl_c_19578,.inl_.inl_b_1978_19514,.inl_.inl_.X2542_1977_19513,.inl_b_19506,.inl_.X2525_19505,.inl_.X2526_19500,.inl_c_19508,.inl_.X2524_19496,.inl_a_19492,.inl_.inl_c_1998_19484,.inl_.inl_.inl_b_1972_2004_19489,.inl_.inl_.inl_.X2542_1971_2003_19488,.inl_.inl_b_1994_19483,.inl_.inl_c_1987_19473,.inl_.inl_.inl_b_1972_1993_19478,.inl_.inl_.inl_.X2542_1971_1992_19477,.inl_.inl_b_1983_19472,.inl_.inl_.X2526_1982_19467,.inl_.inl_c_1979_19466,.inl_c_19497,.inl_.inl_b_1978_19464,.inl_.inl_.X2542_1977_19463,.inl_b_19456,.inl_.X2525_19455,.inl_.X2526_19450,.inl_c_19458,.inl_.X2524_19446,.inl_a_19442,_particle_save,.inl_c_19589,.inl_.inl_c_1987_19604,.inl_.inl_.inl_b_1972_1993_19609,.inl_.inl_.inl_.X2542_1971_1992_19608,.inl_.inl_b_1983_19603,.inl_.inl_c_1979_19597,.inl_.inl_.inl_.X2542_1971_2003_19619,.inl_.inl_.X2542_1977_19594,.inl_.inl_b_1978_19595,.inl_.X2526_19581,.inl_.inl_b_1994_19614,.inl_c_19447,.inl_.inl_.inl_b_1972_2004_19620,.inl_.inl_.X2526_1982_19598,.inl_a_19573,.inl_.X2524_19577,.inl_.X2525_19586,.inl_b_19587,.inl_.inl_c_1998_19615
finally:
  19581, Generating update self(_src_var,_sample_var,_sampleF_var,_sample_pos_var,_psd_Diff_var,_FluoG_var,_instrument_var,_psd4pi_var,_SX_var)
mcenabletrace:
   6074, Generating update device(mcdotrace)
/u/data/pkwi/WORK/micromamba/envs/mcxtrace-dev/bin/ld: /tmp/nvcbIJ6cdYtOaAGA.o: in function `cif2hkl':
/u/data/pkwi/xTESTS/2026-07-07/mcxtrace-3.99.99_openacc_mpi_x_7_Test_Absorption_Test_FluoPowder_Test_PowderN_Test_SX_1e7_Linux_20260707_2125_56/Test_SX/./Test_SX.c:10412:(.text+0x25f3f): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
/u/data/pkwi/WORK/micromamba/envs/mcxtrace-dev/bin/ld: /tmp/nvcbIJ6cdYtOaAGA.o: note: the message above does not take linker garbage collection into account
DEBUG: CMD: nvc finished
INFO: ===
