Creating a source routine

Versions

Please provide the used software versions.

FLUKA: 4-5.0
Flair: 4.3.4
Operating system: Ubuntu on WSL
Compiler: gfortran 9.5

Description

Dear experts,

I am new to FLUKA and trying to create a source routine. When I tried to ‘Build’ it, the follwoing errors arise.

source_cyl.f:20: Error: Can’t open included file ‘(BEAMCM)’
source_cyl.f:20: Error: Can’t open included file ‘(FLKSTK)’

How can I go on with this? I have attached my input and source files.

Thank you in advance!

Cheers,
Jing

Input files

Heavy_ions.inp (3.0 KB)

source_cyl.f (4.1 KB)

Dear Jing,

Your source routine is not compatible with the FLUKAk version supported on the Forum. I would suggest rewriting your routine using the templates source.f or source_newgen.f from <path_to_fluka>/src/user.

Cheers,
David