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

operator++.
This commit is contained in:
Robert K committed 2015-01-28 15:25:11 +01:00
1 parent dc544abe37
commit 99e291d0ca
3 files changed
+9

No files matched your search

@@ -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 );
+3
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;
@@ -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;