Merge pull request #737 from dr-robertk/PR/method-advance-for-timers
Method advance for SimulatorTimers.
This commit is contained in:
commit
0aebabf41e
@ -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 );
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user