Problem 774 - GPS gets caught in infinite loop for power law energy dist, alpha = -1, emin=emax
Summary: GPS gets caught in infinite loop for power law energy dist, alpha = -1, emin=...
Status: RESOLVED LATER
Alias: None
Product: Geant4
Classification: Unclassified
Component: event (show other problems)
Version: 7.1
Hardware: All All
: P2 normal
Assignee: flei
URL:
Depends on:
Blocks:
 
Reported: 2005-07-28 16:49 CEST by jasondet
Modified: 2005-09-29 04:28 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description jasondet 2005-07-28 16:49:07 CEST
I'm using the power law energy distribution provided by the general particle
source with alpha = -1. I accidentally set emin=emax and found that my
simulation just hung before it could simulate any events, taking up lots of CPU.
It was as if the program got caught in an infinite loop somewhere, but I was
unable to find it by reading the code myself. It worked fine again if I changed
emin, emax, or alpha, but I thought I would inform you all of this behavior anyway.

Jason
Comment 1 flei 2005-09-29 04:28:59 CEST
Thanks for reporting this. The current implementation requires emin<emax. More
strict check on the input parameters will be carried out in future iteration of
the implementation.