Problem 962

Summary: Crash in G4UrbanMscModel in Geatn4 8.2
Product: Geant4 Reporter: Florian Uhlig <f.uhlig>
Component: processes/electromagneticAssignee: Vladimir.Ivantchenko
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: P5    
Version: 8.2   
Hardware: PC   
OS: Linux   

Description Florian Uhlig 2007-08-06 13:19:09 CEST
I have a problem with Geant4 version 8.2.
I have a division by zero in G4UrbanMscModel.
In thefollowing code the value of tau is zero
which results in a floating point exception in the
indicated line.


   if(trueStepLength >= currentRange*dtrl)
      if(par1*trueStepLength < 1.)
        tau = -par2*log(1.-par1*trueStepLength) ;
      else
        tau = taubig ;

    currentTau = tau ;
*    lambdaeff = trueStepLength/currentTau;
    currentRadLength = couple->GetMaterial()->GetRadlen();
Comment 1 Florian Uhlig 2007-08-10 11:43:28 CEST
(In reply to comment #0)

After i send the bugreport i saw that this problem was already solved
in version 8.3. Installing this version does the job for me.



*** This problem has been marked as a duplicate of problem 905 ***