Problem 193 - General Particle Source bug
Summary: General Particle Source bug
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: event (show other problems)
Version: other
Hardware: PC Linux
: P2 normal
Assignee: Makoto.Asai
URL:
Depends on:
Blocks:
 
Reported: 2001-01-15 13:01 CET by marc.kippen
Modified: 2001-02-08 20:39 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description marc.kippen 2001-01-15 13:01:55 CET
General Particle Source bug in GenerateIsotropicFlux:

Must protect against divide by zero case when posthe = acos(tz) = 0.0 (i.e., any
source position where X=0 and Y=0)

Fix:
======

replace:
         posphi = acos(tx/sin(posthe));

with:
         if (posthe != 0. && posthe != pi)
            posphi = acos(tx/sin(posthe));
         else
            posphi = 0.0;
Comment 1 Makoto.Asai 2001-01-16 02:20:59 CET
Thank you for reporting. The author will fix it quite soon.
The correction should go to the closest patch release.
Comment 2 Makoto.Asai 2001-02-08 20:39:59 CET
Fix is now committed. It should be included in the coming patch release.