Added initialStep to SimulatorTimerInterface

This commit is contained in:
Markus Blatt
2017-07-20 12:11:11 +02:00
parent 1939453adb
commit b89aa1fa4a
3 changed files with 12 additions and 1 deletions

View File

@@ -51,7 +51,12 @@ namespace Opm
provideTimeStepEstimate( lastStepTaken );
}
AdaptiveSimulatorTimer& AdaptiveSimulatorTimer::operator++ ()
bool AdaptiveSimulatorTimer::initialStep () const
{
return ( report_step_ == 0 ) && ( current_step_ == 0 );
}
AdaptiveSimulatorTimer& AdaptiveSimulatorTimer::operator++ ()
{
++current_step_;
current_time_ += dt_;