--- trunk/OOPSE/libmdtools/SimInfo.cpp 2003/09/29 21:16:11 790 +++ trunk/OOPSE/libmdtools/SimInfo.cpp 2003/10/29 17:55:28 841 @@ -1,6 +1,6 @@ -#include -#include -#include +#include +#include +#include #include using namespace std; @@ -514,34 +514,45 @@ void SimInfo::setRcut( double theRcut ){ void SimInfo::setRcut( double theRcut ){ - - if( !haveOrigRcut ){ - haveOrigRcut = 1; - origRcut = theRcut; - } rCut = theRcut; checkCutOffs(); } -void SimInfo::setEcr( double theEcr ){ +void SimInfo::setDefaultRcut( double theRcut ){ - if( !haveOrigEcr ){ - haveOrigEcr = 1; - origEcr = theEcr; - } + haveOrigRcut = 1; + origRcut = theRcut; + rCut = theRcut; +} +void SimInfo::setEcr( double theEcr ){ + ecr = theEcr; checkCutOffs(); } +void SimInfo::setDefaultEcr( double theEcr ){ + + haveOrigEcr = 1; + origEcr = theEcr; + + ecr = theEcr; +} + void SimInfo::setEcr( double theEcr, double theEst ){ est = theEst; setEcr( theEcr ); } +void SimInfo::setDefaultEcr( double theEcr, double theEst ){ + est = theEst; + setDefaultEcr( theEcr ); +} + + void SimInfo::checkCutOffs( void ){ int cutChanged = 0;