Problem 1531

Summary: precison problem in G4PhysicsVector
Product: Geant4 Reporter: Pedro.Arce
Component: global/managementAssignee: Vladimir.Ivantchenko
Status: RESOLVED FIXED    
Severity: normal    
Priority: P5    
Version: 9.6   
Hardware: PC   
OS: Windows   

Description Pedro.Arce 2013-10-28 10:37:09 CET
I found a precision problem when running geant4.9.6.p02 in windows (Visual C++10). I have an energy 1 MeV that indeed is 0.9999999999999989. Then at G4PhysicsVector::Interpolate

  } else if( theEnergy >= edgeMax ) {

says it is smaller, but at 

FindBinLocation it is located in the last bin, and when an interpolation is done between this bin and bin+1 it crashes because it is out of range.
Comment 1 Vladimir.Ivantchenko 2013-12-12 17:24:17 CET
The problem has been fixed in the new 10.0 release. The fix will be back-ported to 9.6 in the time of the new patch.