Problem 1645 - TestEm6 run02.mac computes logarithm of zero
Summary: TestEm6 run02.mac computes logarithm of zero
Status: RESOLVED FIXED
Alias: None
Product: Examples/Extended
Classification: Unclassified
Component: electromagnetic/TestEM5 (show other problems)
Version: 10.0
Hardware: PC Linux
: P5 normal
Assignee: Vladimir.Ivantchenko
URL:
Depends on:
Blocks:
 
Reported: 2014-06-24 07:42 CEST by Vittorio Zecca
Modified: 2014-07-30 19:48 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 Vittorio Zecca 2014-06-24 07:42:41 CEST
Running TestEm6 run02.mac I found that at src/SteppingAction.cc line 91
"analysisManager->FillH1(3,std::log10(thetaMinus*GammaMinus));"
the variable thetaMinus is zero, thus causing the code to compute 
the logarithm of zero.
Putting "assert(thetaMinus);" before that line confirmed my finding.
Comment 1 Vladimir.Ivantchenko 2014-07-02 23:48:22 CEST
Hello,

thanks for pointing to the bug. The fix will be in the next patch for Geant4 10.0 and in the new Geant4 release.

VI
Comment 2 Vladimir.Ivantchenko 2014-07-30 19:48:11 CEST
The fix is provided and will be available in next reference version.