timers modefied

This commit is contained in:
Hamidreza Norouzi
2023-03-16 06:49:33 -07:00
parent c6ddf00d7b
commit ef1e3c1e33
9 changed files with 94 additions and 54 deletions

View File

@ -152,18 +152,9 @@ public:
return currentIter_;
}
bool finalTime()const
{
if( currentTime_ >= endTime_ ) return true;
if( abs(currentTime_-endTime_) < 0.5*dt_ )return true;
return false;
}
bool reachedStopAt()const
{
if( currentTime_ >= stopAt_ ) return true;
if( abs(currentTime_-stopAt_) < 0.5*dt_ )return true;
return false;
}
bool finalTime()const;
bool reachedStopAt()const;
bool outputToFile()const
{