Mainfludag compilation error

Dear FLUKA experts,

I am trying to compile mainfludag with a user definied source. I get several errors related to include 'source_library.inc' that I have attached as compilation_errors.f. Also the source.f is attached.

How can I solve these errors?

Regards,
Lovepreet
WPTE_W.f (11.3 KB)
compilation_errors.txt (2.1 KB)

Hi @Singh

You can see an example of how to do this in FLUDAG in DAGMC/CMakeLists.txt at fluka-cern-source · makeclean/DAGMC · GitHub - you will see a source and magnetic field example within.

Let me know if you have any problems.

Thanks

Andy

Thank you for your answer, Sir.

The source files present in GitHub folder do not create any issue and the compilation goes smoothly. However, when I try to repeat the same process with source_newgen.f some errors pop up related to include source_library.inc.

Have you ever tried to use this custom routine?

Thanks,
Lovepreet

Solved in