Ignore:
Timestamp:
Apr 6, 2009, 12:30:29 PM (15 years ago)
Author:
garnier
Message:

update processes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPKallbachMannSyst.cc

    r819 r962  
    2727// J.P. Wellisch, Nov-1996
    2828// A prototype of the low energy neutron transport model.
     29//
     30// 080801 Protect div0 error, when theCompundFraction is 1 by T. Koi
    2931//
    3032#include "G4NeutronHPKallbachMannSyst.hh"
     
    6971{
    7072  G4double result;
     73  if ( theCompoundFraction == 1 )
     74  {
     75     //G4cout << "080730b Adjust theCompoundFraction " << G4endl;
     76     theCompoundFraction *= (1-1.0e-15);   
     77  }
    7178  result = 0.5 * (1./A(anEnergy)) * std::log((1-theCompoundFraction)/(1+theCompoundFraction));
    7279  return result;
Note: See TracChangeset for help on using the changeset viewer.