Ununderstood error when using the LOW-PWXS

Dear FLUKA experts,

I get the following error when activating the LOW-PWXS treatment for some materials:

At line 1403 of file lowneu/kasneu.f
Fortran runtime error: Index ‘0’ of dimension 1 of array ‘wlwnsc’ below lower bound of 1
Error termination. Backtrace:
#0 0x7f4b3cb192ed in ???
#1 0x7f4b3cb19ed5 in ???
#2 0x7f4b3cb1a2a7 in ???
#3 0x55e8b85bc070 in kasneu_
at lowneu/kasneu.f:1403
#4 0x55e8b84170d2 in kaskad_
at cascade/kaskad.f:4298
#5 0x55e8b82bf19e in feeder_
at cascade/feeder.f:277
#6 0x55e8b822cf0b in flukam_
at main/flukam.f:2796
#7 0x55e8b822a040 in fluka
at main/fluka.f:77
#8 0x55e8b822a040 in main
at /root/rpmbuild/BUILD/fluka-4/src/usflmd.inc:15

However, I am not able to find the mentioned kasneu.f file in my computer.

Any idea of what is happening. I attach the input file. I am using FLUKA version 4.3-2

NeutronTarget.flair (12.0 KB)
NeutronTarget.inp (16.7 KB)

Thank you.

Dear @nil.mont,

Please, upgrade to the last version 4-3.4 (see here), and confirm that the problem persist.
Thank you.

Dear @nil.mont

thank you for reporting the problem, indeed it crashes also with the new version.
What happes is that you are using a DISCARD card for all particles (except neutrons).
A discarded particle updates wrongly one statistics counter leading to a crash.
I would suggest for the moment that you disable the DISCARD card and everything will work ok.

If you are afraid that the run will be slower, you can use a higher EMF cuts or completely disable the EMF

1 Like

Dear Vasilis,

Thank you for your answer, I have disabled the DISCARD cards and it works.