20#ifndef OPM_SIMULATORTIMERINTERFACE_HEADER_INCLUDED
21#define OPM_SIMULATORTIMERINTERFACE_HEADER_INCLUDED
25namespace boost {
namespace posix_time {
class ptime; } }
82 virtual bool done()
const = 0;
101 virtual std::unique_ptr< SimulatorTimerInterface >
clone ()
const = 0;
Interface class for SimulatorTimer objects, to be improved.
Definition SimulatorTimerInterface.hpp:34
virtual time_t currentPosixTime() const
Time elapsed since the start of the POSIX epoch (Jan 1st, 1970) until the current time step begins [s...
Definition SimulatorTimerInterface.cpp:37
virtual boost::posix_time::ptime startDateTime() const =0
Return start date of simulation.
virtual double stepLengthTaken() const =0
Previous step length.
virtual void advance()=0
advance time by currentStepLength
virtual int reportStepNum() const
Current report step number. This might differ from currentStepNum in case of sub stepping.
Definition SimulatorTimerInterface.hpp:50
SimulatorTimerInterface()
Default constructor, protected to not allow explicit instances of this class.
Definition SimulatorTimerInterface.hpp:37
virtual bool initialStep() const =0
Whether the current step is the first step.
virtual bool lastStepFailed() const =0
Return true if last time step failed.
virtual std::unique_ptr< SimulatorTimerInterface > clone() const =0
return copy of current timer instance
virtual double reportStepLengthTaken() const
Previous report step length.
Definition SimulatorTimerInterface.hpp:72
virtual double currentStepLength() const =0
Current step length.
virtual double simulationTimeElapsed() const =0
Time elapsed since the start of the simulation until the beginning of the current time step [s].
virtual ~SimulatorTimerInterface()
destructor
Definition SimulatorTimerInterface.hpp:41
virtual bool done() const =0
Return true if timer indicates that simulation of timer interval is finished.
virtual int currentStepNum() const =0
Current step number.
virtual boost::posix_time::ptime currentDateTime() const
Return the current time as a posix time object.
Definition SimulatorTimerInterface.cpp:28
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition BlackoilPhases.hpp:27