SimulatorTimer...: added method advance which is the new interface for previously used

operator++.
This commit is contained in:
Robert K 2015-01-28 15:25:11 +01:00
parent dc544abe37
commit 99e291d0ca
3 changed files with 9 additions and 0 deletions

View File

@ -46,6 +46,9 @@ namespace Opm
/// \brief advance time by currentStepLength
AdaptiveSimulatorTimer& operator++ ();
/// \brief advance time by currentStepLength
void advance() { this->operator++ (); }
/// \brief provide and estimate for new time step size
void provideTimeStepEstimate( const double dt_estimate );

View File

@ -98,6 +98,9 @@ namespace Opm
/// Next step.
SimulatorTimer& operator++();
/// Next step.
void advance() { this->operator++(); }
/// Return true if op++() has been called numSteps() times.
bool done() const;

View File

@ -75,6 +75,9 @@ namespace Opm
/// beginning of the current time step [s].
virtual double simulationTimeElapsed() const = 0;
/// advance timer to the next time step
virtual void advance() = 0 ;
/// Return true if timer indicates that simulation of timer interval is finished
virtual bool done() const = 0;