diff --git a/opm/core/simulator/AdaptiveSimulatorTimer.hpp b/opm/core/simulator/AdaptiveSimulatorTimer.hpp index cd6c56b6..870fffd8 100644 --- a/opm/core/simulator/AdaptiveSimulatorTimer.hpp +++ b/opm/core/simulator/AdaptiveSimulatorTimer.hpp @@ -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 ); diff --git a/opm/core/simulator/SimulatorTimer.hpp b/opm/core/simulator/SimulatorTimer.hpp index 8f9e7b0b..1f2e66b2 100644 --- a/opm/core/simulator/SimulatorTimer.hpp +++ b/opm/core/simulator/SimulatorTimer.hpp @@ -95,9 +95,12 @@ namespace Opm /// Note: if done(), it is an error to call report(). void report(std::ostream& os) const; - /// Next step. + /// advance time by currentStepLength SimulatorTimer& operator++(); + /// advance time by currentStepLength + void advance() { this->operator++(); } + /// Return true if op++() has been called numSteps() times. bool done() const; diff --git a/opm/core/simulator/SimulatorTimerInterface.hpp b/opm/core/simulator/SimulatorTimerInterface.hpp index 25118fd2..c3cb9eee 100644 --- a/opm/core/simulator/SimulatorTimerInterface.hpp +++ b/opm/core/simulator/SimulatorTimerInterface.hpp @@ -75,6 +75,9 @@ namespace Opm /// beginning of the current time step [s]. virtual double simulationTimeElapsed() const = 0; + /// advance time by currentStepLength + virtual void advance() = 0 ; + /// Return true if timer indicates that simulation of timer interval is finished virtual bool done() const = 0;