Problem 962 - Crash in G4UrbanMscModel in Geatn4 8.2
Summary: Crash in G4UrbanMscModel in Geatn4 8.2
Status: RESOLVED DUPLICATE of problem 905
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/electromagnetic (show other problems)
Version: 8.2
Hardware: PC Linux
: P5 major
Assignee: Vladimir.Ivantchenko
URL:
Depends on:
Blocks:
 
Reported: 2007-08-06 13:19 CEST by Florian Uhlig
Modified: 2007-08-10 11:43 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 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 ***