Dear Fluka expert,
I am trying to run a simulation that generates an x-ray field in order to study the skin in interventional radiology and I get the following issues :
vboi@mac-0742 TEST % /Users/vboi/FLUKA_FLAIR/fluka4-5.0/bin/rfluka -M 5 -e /Users/vboi/TEST/XRay_Field_Generator /Users/vboi/TEST/XRay_Field.inp
F L U K A
Dir: /Users/vboi/FLUKA_FLAIR/fluka4-5.0
Data: /Users/vboi/FLUKA_FLAIR/fluka4-5.0/data
Exec: /Users/vboi/TEST/XRay_Field_Generator
Input: /Users/vboi/TEST/XRay_Field.inp
Initial seed copied from /Users/vboi/FLUKA_FLAIR/fluka4-5.0/data
Running fluka in /Users/vboi/TEST/fluka_71908
======================== Running FLUKA for cycle # 1 ========================
/Users/vboi/FLUKA_FLAIR/fluka4-5.0/bin/rfluka: line 376: 71964 Floating point exception: 8 "${EXE}" "${INPF}" > "${LOGF}" 2>&1
Error: "/Users/vboi/TEST/XRay_Field_Generator" executable returned RC=136
With the .out file giving me:
Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation.
Backtrace for this error:
#0 0x11187eb22
#1 0x11187e155
#2 0x7ff8108a225c
#3 0x105e3c671
#4 0x105fea552
#5 0x105fbe3df
#6 0x10638eca0
#7 0x7ff8104c452f
I am running FLUKA-4-5.0 with a Mac Mini with MacOS15.5.
I compiled my source.f routine with /path_to_fluka/bin/fff XRay_Field_Generator.f
then /path_to_fluka/bin/lfluka -o XRay_Field_Generator XRay_Field_Generator.o
and get well my XRay_Field_Generator executable (13.5 Mo).
I compiled FLUKA with gcc14.2.0 installed with MacPort
The command which gcc give me:
/opt/local/bin/gcc
The command gcc --version give me:
GNU Fortran (MacPorts gcc14 14.2.0_3+stdlib_flag) 14.2.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
echo $PATH give the following lines:
/opt/local/bin
/opt/local/sbin
/Users/vboi/GATE/gate-install/bin
/usr/local/bin:/System/Cryptexes/App/usr/bin
/usr/bin:/bin
/usr/sbin:/sbin
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin
/Library/TeX/texbin
/Users/vboi/FLUKA_FLAIR/fluka4-5.0/bin
Could you please help me to find the origin of the issue ?
I attached the files of interest.
XRay_80kV.txt (1.5 KB)
XRay_Field_Generator.f (10.9 KB)
XRay_Field.inp (3.9 KB)
Best regards,
Valentin Bonvin