Dear Experts,
I have encountered an issue while running simulations for clinical particle beams (proton, alpha, and carbon ion) using FLUKA. My approach involves utilizing an external text file to generate a Spread-Out Bragg Peak (SOBP). I have written a source.f file to sample from this spectrum file and compiled it with comscw.f without encountering any issues. In my input file, I utilize source and open cards to define the beam of interest.
This method has been effective thus far. However, I am currently facing a problem with newly generated executables. While I can still successfully run the executable versions I had before, the new executables are terminating with errors in different versions of FLUKA:
In FLUKA version ‘4-1.1’, the simulation aborts with the following error message:
Abort called from DEULOA reason Failed to load deuebu.dat Run stopped!
STOP Failed to load deuebu.dat
In FLUKA version ‘4-3.3’, the simulation ends with the error code “executable returned RC=136.”
IT"S IMPORTANT to mention that Both versions of FLUKA compile the file correctly, but the simulation cannot run due to the aforementioned errors.
I am using Flair, installed from the repository (updated flair version 3.3-0.1).
Could you please assist me in understanding and resolving these issues? Any guidance on troubleshooting these errors would be greatly appreciated.
Thank you @horvathd for responding.
Upon further investigation, I confirmed that the “deuebu.dat” file is indeed missing in the FLUKA 4-1.1 data directory. After copying it from the 4-3.3 version, the same error (RC=135) persisted in the 4-1.1 version, and in the 4-3.3 version, I am still receiving the “RC=136” error showed only in .out file (FLUKA doesn’t generate .err and .log files for this run). It’s noteworthy that these errors only arise when I compile and run the executable with my source.f routine that reads from an external file. Previous executables compiled with the same source.f and comscw.f work correctly, and new executables compiled only with comscw.f also function without issues.
I am attaching the relevant input files and source code for your review sourcemodSOBP.f (9.5 KB) He4_SOBP.inp (3.0 KB) He4_SOBP.flair (2.5 KB) spectrum.dat (37.0 KB)
Thank you once again for your assistance.
Thank you @horvathd for your prompt response and guidance.
Following your advice, I have installed the most recent version of FLUKA (fluka-4-3.4.x86-Linux-gfor9.tgz) as per the instructions provided on the official CERN FLUKA website. I’m not sure though if executing this command “make install DESTDIR=/usr/local/fluka” is required since FLUKA is up running smoothly. I made sure to include the FLUKA directory in my PATH environment variable with the following command:.
export PATH=/home/stantz/fluka4-3.4/bin:$PATH
This update allowed me to run simulations from the terminal. However, both Flair and the terminal command still report an RC=136 error for the new built executables:
rfluka -M1 -e /home/stantz/simulation/routines/newSource /home/stantz/simulation/TreatmentPlan/Ning/He4/SOBP/He4_SOBP.inp
Error: “/home/stantz/simulation/routines/newSource” executable returned RC=136
This issue seems to occur exclusively with compilations involving source.f , which reads from an external file. Given that you were able to run a similar simulation, I am sharing the link for the problematic executable for your review. Could you please check if it works on your end.