SimulatorTimer...: added method advance which is the new interface for previously used
operator++.
This commit is contained in:
parent
dc544abe37
commit
99e291d0ca
@ -46,6 +46,9 @@ namespace Opm
|
|||||||
/// \brief advance time by currentStepLength
|
/// \brief advance time by currentStepLength
|
||||||
AdaptiveSimulatorTimer& operator++ ();
|
AdaptiveSimulatorTimer& operator++ ();
|
||||||
|
|
||||||
|
/// \brief advance time by currentStepLength
|
||||||
|
void advance() { this->operator++ (); }
|
||||||
|
|
||||||
/// \brief provide and estimate for new time step size
|
/// \brief provide and estimate for new time step size
|
||||||
void provideTimeStepEstimate( const double dt_estimate );
|
void provideTimeStepEstimate( const double dt_estimate );
|
||||||
|
|
||||||
|
@ -98,6 +98,9 @@ namespace Opm
|
|||||||
/// Next step.
|
/// Next step.
|
||||||
SimulatorTimer& operator++();
|
SimulatorTimer& operator++();
|
||||||
|
|
||||||
|
/// Next step.
|
||||||
|
void advance() { this->operator++(); }
|
||||||
|
|
||||||
/// Return true if op++() has been called numSteps() times.
|
/// Return true if op++() has been called numSteps() times.
|
||||||
bool done() const;
|
bool done() const;
|
||||||
|
|
||||||
|
@ -75,6 +75,9 @@ namespace Opm
|
|||||||
/// beginning of the current time step [s].
|
/// beginning of the current time step [s].
|
||||||
virtual double simulationTimeElapsed() const = 0;
|
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
|
/// Return true if timer indicates that simulation of timer interval is finished
|
||||||
virtual bool done() const = 0;
|
virtual bool done() const = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user