Hi Liu,
Your problem is that you deleted the line
WEIPRI = WEIPRI + WTFLK(NPFLKA)
So at the end of your calculation it divides by zero
Another note, please do not move up/down lines in the source file, try
To respect the original template.
e.g. you are converting the kinetic energy to momentum at line 110
before you have set the IONID
Cheers
Vasilis
From: owner-fluka-discuss_at_mi.infn.it [mailto:owner-fluka-discuss_at_mi.infn.it] On Behalf Of Zhiyi Liu
Sent: 03 April 2017 21:34
To: fluka-discuss_at_fluka.org
Subject: [fluka-discuss]: error: Program terminated with signal SIGFPE, Arithmetic exception.
Hi,
I am using customised source code to generate primary particles.
The code crashed with the following error:
Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation.
Backtrace for this error:
#0 0x7F13C6D39777
#1 0x7F13C6D39D7E
#2 0x7F13C6475CAF
#3 0x4C03A8 in genout_ at genout.f:112 (discriminator 8)
#4 0x4090B0 in flukam_ at flukam.f:3174 (discriminator 8)
#5 0x40244B in fluka at fluka.f:289
#6 0x7F13C6460F44
Floating point exception (core dumped)
I use gdb tool to debug it and have the message like:
Program terminated with signal SIGFPE, Arithmetic exception.
#0 genout () at genout.f:112
112 genout.f: No such file or directory.
My code is attached for your reference. Basically it reads a file containing particles.
Any hints?
I am using gfortran in gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
Thanks.
--
Zhiyi Liu
Advanced Applied Physics Solutions, TRIUMF
4004 Wesbrook Mall, Vancouver, BC, Canada V6T 2A3
Tel: (604)222-7702 Email: zhiyil_at_triumf.ca<mailto:zhiyil_at_triumf.ca>
__________________________________________________________________________
You can manage unsubscription from this mailing list at
https://www.fluka.org/fluka.php?id=acc_info
Received on Tue Apr 04 2017 - 10:46:56 CEST