Empty log file and RC=2 with source.f

Versions

Please provide the used software versions.

FLUKA: 4-3.4 and 4.5.1
Flair: 3.3-0.3 and 3.4-5.1
Operating system: Fedora-42
Compiler: GNU Fortran (GCC) 15.2.1 20251111

The input file runs well without test1.f but with it I get error “executable returned RC=2”

The generated log file is always empty even with write statement.

I have attached the files for reference.

Please look into the issue.

Description

Please describe the issue. In case of reporting a bug, please provide step-by-step instructions for reproducing the error.

test1.f (9.7 KB)

fullspectra.inp (2.7 KB)

fullspectra.flair (1.8 KB)

fullspectra001.err (851 Bytes)

Input files

Please upload all relevant files. (FLUKA input file, Flair project file, user routines, and data files)

Dear @akardeepak

you can find more details of the error in the .out file. It tells me

0 !!! Exit being called from Flklkz !!!
 **** Particle in position X = -1.00000000E+30, Y = -1.00000000E+30, Z = -1.00000000E+30
 **** with energy  0.000000E+00 GeV, discarded ****

so you particle does not have an energy and no coordinate set. For the latter, I found that you deleted the part in the source file that pushes to coordinates to the stack (search for the line * Particle coordinates in your file and in the unedited source.f)

Two more issues I found:

  1. in the case of non-heavy-ion primaries you assign TKEFLK (an array) a floating point value (lines 143 and 145) which will probably create a bunch of problems
  2. you seem to manually set the kinetic energy of your primary but then the momentum is set to be the usual PBEAM according to line 150 in test1.f. I believe you have to set the momentum according to the currently commented lines 151 and 152

Lastly, for numerical precision it is best to use the format ‘1.5D-03’ instead of ‘1.5e-3’ for floating point values.

Best regards
Roman

1 Like