Problem 774

Summary: GPS gets caught in infinite loop for power law energy dist, alpha = -1, emin=emax
Product: Geant4 Reporter: jasondet
Component: eventAssignee: flei
Status: RESOLVED LATER    
Severity: normal    
Priority: P2    
Version: 7.1   
Hardware: All   
OS: All   

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.