INFO: Using directory: "1" INFO: Regenerating c-file: MAXIV_DanMAX_pxrd2d.c CFLAGS= @GSLFLAGS@ -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_pxrd2d.out ./MAXIV_DanMAX_pxrd2d.c: In function 'reflec_Init': ./MAXIV_DanMAX_pxrd2d.c:13033:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 13033 | int N=(unsigned int)((double **) pars)[0]; | ^ /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/12.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /tmp/ccV6Yx8g.o: in function `cif2hkl': /u/data/pkwi/xTESTS/2025-05-14/McXtrace_8GPU_openacc_1e7_Linux_1e7/MAXIV_DanMAX_pxrd2d/./MAXIV_DanMAX_pxrd2d.c:13816: warning: the use of `tmpnam' is dangerous, better use `mkstemp' WARNING: Ignoring invalid parameter: "MAXIV_DanMAX_pxrd2d.instr" INFO: === DCM is tuned to E=35 keV corresponding to an angle of 3.23858 (3.23818 + 0.000399326) deg. DMM is tuned to E=35 keV corresponding to an angle of 0.412871 deg. si mono in, ml mono out DMM1 saggital curvature radius is 4549.5 m, meridional radius is 203 m. x offset after DCM is: 0.01, x offset after DMM is: 0.01 z ml mono offset is: 0, z si mono offset is: 0.088647 INFO: DanMAX_undulator: fundamental energy: 3.004, harmonic= 5, target energy= 15 INFO: DanMAX: PXRD 2d area detector prms: 0.135 0 0.000172 0.000172 1475 1679 [MAXIV_DanMAX_pxrd2d] Initialize Undulator (dmu) K=1.24755 B=0.83506[T] lu=0.016[m] E1st=3.004[keV] E0=15[keV] gap=0.00507436[m] Opening input file '/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/data/C-diamond.txt' (Table_Read_Offset) Opening input file '/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/data/Si.txt' (Table_Read_Offset) Opening input file '/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/data/FormFactors.txt' (Table_Read_Offset) Reusing input file 'Si.txt' (Table_Read_Offset) Reusing input file 'FormFactors.txt' (Table_Read_Offset) Opening input file '/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/data/w_b4c_si_3AArghn.dat' (Table_Read_Offset) INFO (reflectivity-lib) reflectivity parameterization type: 'eth' Reusing input file 'w_b4c_si_3AArghn.dat' (Table_Read_Offset) INFO (reflectivity-lib) reflectivity parameterization type: 'eth' Reusing input file 'w_b4c_si_3AArghn.dat' (Table_Read_Offset) INFO (reflectivity-lib) reflectivity parameterization type: 'eth' Opening input file '/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/data/Be.txt' (Table_Read_Offset) Opening input file '/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/data/LaB6_660b_AVID2.hkl' (Table_Read_Offset) Table from file 'LaB6_660b_AVID2.hkl' (block 1) is 1453 x 6 (x=1:23), constant step. interpolation: linear '# TITLE La1 B6 [Cubic, Centric (-1 at origin)];# a b ...' PowderN: powdern: Powder file probably of type Crystallographica/Fullprof (lau) WARNING: but F2 unit is set to barns=1 (barns). Intensity might be 100 times too high. PowderN: powdern: Read 1453 reflections from file 'LaB6_660b_AVID2.hkl' Opening input file '/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/data/lab6.abs' (Table_Read_Offset) PowderN: powdern: WARNING: Did not hit sample from inside (inc). ABSORB. PowderN: powdern: WARNING: Did not hit sample from inside (inc). ABSORB. PowderN: powdern: WARNING: Did not hit sample from inside (inc). ABSORB. PowderN: powdern: WARNING: Did not hit sample from inside (inc). ABSORB. PowderN: powdern: WARNING: Did not hit sample from inside (inc). ABSORB. PowderN: powdern: WARNING: Did not hit sample from inside (inc). ABSORB. PowderN: powdern: WARNING: Did not hit sample from inside (inc). ABSORB. PowderN: powdern: WARNING: Did not hit sample from inside (inc). ABSORB. PowderN: powdern: WARNING: Did not hit sample from inside (inc). ABSORB. PowderN: powdern: WARNING: Did not hit sample from inside (inc). ABSORB. Trace ETA 1.66667 [min] 10 % 20 % 30 % 40 % 50 % 60 % 70 % 80 % 90 % *** TRACE end *** Save [MAXIV_DanMAX_pxrd2d] Detector: src_psd_I=3.13517e+15 src_psd_ERR=4.2356e+12 src_psd_N=9.99626e+06 "src_mon.psd" Detector: src_div_I=3.13602e+15 src_div_ERR=4.23617e+12 src_div_N=1e+07 "src_mon.div" Detector: src_e_I=3.13602e+15 src_e_ERR=4.23617e+12 src_e_N=1e+07 "src_mon.e" Detector: oh_postmono_psd_I=0.0221738 oh_postmono_psd_ERR=3.26565e-05 oh_postmono_psd_N=3.55656e+06 "oh_postmono.psd" Detector: oh_postmono_div_I=0.0224169 oh_postmono_div_ERR=3.28174e-05 oh_postmono_div_N=3.67027e+06 "oh_postmono.div" Detector: oh_postmono_e_I=0.0224169 oh_postmono_e_ERR=3.28174e-05 oh_postmono_e_N=3.67027e+06 "oh_postmono.e" Detector: eh_start_psd_I=0.0177437 eh_start_psd_ERR=2.94481e-05 eh_start_psd_N=2.266e+06 "eh_start.psd" Detector: eh_start_div_I=0.0216296 eh_start_div_ERR=3.22945e-05 eh_start_div_N=3.32614e+06 "eh_start.div" Detector: eh_start_e_I=0.0216296 eh_start_e_ERR=3.22945e-05 eh_start_e_N=3.32614e+06 "eh_start.e" Detector: imaging_psd_I=0.0166034 imaging_psd_ERR=2.85333e-05 imaging_psd_N=2.04642e+06 "imaging.psd" Detector: imaging_div_I=0.0216296 imaging_div_ERR=3.22945e-05 imaging_div_N=3.32614e+06 "imaging.div" Detector: imaging_e_I=0.0216296 imaging_e_ERR=3.22945e-05 imaging_e_N=3.32614e+06 "imaging.e" Detector: pxrd2_psd_I=0.00159797 pxrd2_psd_ERR=9.03835e-06 pxrd2_psd_N=158046 "pxrd2.psd" Detector: pxrd2_div_I=0.00159797 pxrd2_div_ERR=9.03835e-06 pxrd2_div_N=158046 "pxrd2.div" Detector: pxrd2_e_I=0.00159797 pxrd2_e_ERR=9.03835e-06 pxrd2_e_N=158046 "pxrd2.e" Detector: Pilatus_2M_I=8.03459e-05 Pilatus_2M_ERR=2.97712e-07 Pilatus_2M_N=684205 "Pilatus_2M.dat" Finally [MAXIV_DanMAX_pxrd2d: 1]. Time: 1.61667 [min] PowderN: powdern: Warning messages were repeated 1047093 times with absorbed xrays. PowderN: powdern: INFO: You may highly improve the computation efficiency by using SPLIT 144 COMPONENT powdern=PowderN(...) in the instrument description MAXIV_DanMAX_pxrd2d.instr. INFO: Placing instr file copy MAXIV_DanMAX_pxrd2d.instr in dataset 1 INFO: Placing generated c-code copy MAXIV_DanMAX_pxrd2d.c in dataset 1