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/G4NeutronHPChannel.cc

    r819 r962  
    3030// 070523 bug fix for G4FPE_DEBUG on by A. Howard ( and T. Koi)
    3131// 071031 bug fix T. Koi on behalf of A. Howard
     32// 081203 bug fix in Register method by T. Koi
    3233//
    3334#include "G4NeutronHPChannel.hh"
     
    6869    registerCount++;
    6970    G4int Z = G4lrint(theElement->GetZ());
     71
     72    Z = Z-registerCount;
     73    if ( registerCount > 5 ) throw G4HadronicException(__FILE__, __LINE__, "Channel: Do not know what to do with this material"); // for Elastic, Capture, Fission case
     74    if ( Z < 1 ) return false;
     75/*
    7076    if(registerCount<5)
    7177    {
    7278      Z = Z-registerCount;
    7379    }
     80*/
    7481    //if(Z=theElement->GetZ()-5) throw G4HadronicException(__FILE__, __LINE__, "Channel: Do not know what to do with this material");
    7582    // Bug fix by TK on behalf of AH
     
    8491    delete [] active;
    8592    active = new G4bool[niso];
     93
    8694    delete [] theFinalStates;
    8795    theFinalStates = new G4NeutronHPFinalState * [niso];
Note: See TracChangeset for help on using the changeset viewer.