mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
SimulatorTimer...: added method advance which is the new interface for previously used
operator++.
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user