Ignore:
Timestamp:
Jan 8, 2010, 11:56:51 AM (14 years ago)
Author:
garnier
Message:

update geant4.9.3 tag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/util/include/G4NuclearFermiDensity.hh

    r819 r1228  
    5656    G4double GetDeriv(const G4ThreeVector & aPosition) const
    5757    {
    58       return -std::exp((aPosition.mag()-theR)/a) * sqr(GetDensity(aPosition)) / (a*Getrho0());
     58      G4double currentR=aPosition.mag();
     59      if (currentR > 40*theR  ) {return 0;}
     60      else return -std::exp((currentR-theR)/a) * sqr(GetDensity(aPosition)) / (a*Getrho0());
    5961    }   
    6062   
Note: See TracChangeset for help on using the changeset viewer.