Changeset 962 for trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPKallbachMannSyst.cc
- Timestamp:
- Apr 6, 2009, 12:30:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPKallbachMannSyst.cc
r819 r962 27 27 // J.P. Wellisch, Nov-1996 28 28 // A prototype of the low energy neutron transport model. 29 // 30 // 080801 Protect div0 error, when theCompundFraction is 1 by T. Koi 29 31 // 30 32 #include "G4NeutronHPKallbachMannSyst.hh" … … 69 71 { 70 72 G4double result; 73 if ( theCompoundFraction == 1 ) 74 { 75 //G4cout << "080730b Adjust theCompoundFraction " << G4endl; 76 theCompoundFraction *= (1-1.0e-15); 77 } 71 78 result = 0.5 * (1./A(anEnergy)) * std::log((1-theCompoundFraction)/(1+theCompoundFraction)); 72 79 return result;
Note: See TracChangeset
for help on using the changeset viewer.