|
| | AdaptiveSimulatorTimer (const boost::posix_time::ptime simulation_start_time, const double step_length, const double elapsed_time, const double last_step_taken, const int report_step, const double max_time_step=std::numeric_limits< double >::max()) |
| | constructor taking a simulator timer to determine start and end time More...
|
| |
|
AdaptiveSimulatorTimer & | operator++ () |
| | advance time by currentStepLength
|
| |
|
void | advance () override |
| | advance time by currentStepLength
|
| |
|
void | provideTimeStepEstimate (const double dt_estimate) |
| | provide and estimate for new time step size
|
| |
|
bool | initialStep () const override |
| | Whether this is the first step.
|
| |
| int | currentStepNum () const override |
| |
|
int | reportStepNum () const override |
| | return current report step
|
| |
| double | currentStepLength () const override |
| |
|
void | setCurrentStepLength (double dt) |
| |
| double | totalTime () const |
| |
| double | simulationTimeElapsed () const override |
| |
| bool | done () const override |
| |
|
double | averageStepLength () const |
| | return average step length used so far
|
| |
|
double | maxStepLength () const |
| | return max step length used so far
|
| |
|
double | minStepLength () const |
| | return min step length used so far
|
| |
| double | stepLengthTaken () const override |
| | Previous step length. More...
|
| |
|
void | report (std::ostream &os) const |
| | report start and end time as well as used steps so far
|
| |
|
boost::posix_time::ptime | startDateTime () const override |
| | start date time of simulation
|
| |
|
bool | lastStepFailed () const override |
| | Return true if last time step failed.
|
| |
|
void | setLastStepFailed (bool last_step_failed) |
| | tell the timestepper whether timestep failed or not
|
| |
| double | reportStepStartTime () const |
| | Reservoir coupling constructs a fresh timer per sync chunk, so start_time_, total_time_, and current_step_ describe the chunk rather than the enclosing report step. More...
|
| |
|
double | reportStepTotalTime () const |
| |
|
int | reportStepSubstepNum () const |
| |
|
void | setReportStepStartTime (double t) |
| |
|
void | setReportStepTotalTime (double t) |
| |
|
void | setReportStepSubstepOffset (int n) |
| |
|
int | reportStepSubstepOffset () const |
| |
|
std::unique_ptr< SimulatorTimerInterface > | clone () const override |
| | return copy of object
|
| |
|
virtual | ~SimulatorTimerInterface () |
| | destructor
|
| |
|
virtual boost::posix_time::ptime | currentDateTime () const |
| | Return the current time as a posix time object.
|
| |
| virtual time_t | currentPosixTime () const |
| | Time elapsed since the start of the POSIX epoch (Jan 1st, 1970) until the current time step begins [s]. More...
|
| |
| virtual double | reportStepLengthTaken () const |
| | Previous report step length. More...
|
| |
Simulation timer for adaptive time stepping.
| double Opm::AdaptiveSimulatorTimer::reportStepStartTime |
( |
| ) |
const |
Reservoir coupling constructs a fresh timer per sync chunk, so start_time_, total_time_, and current_step_ describe the chunk rather than the enclosing report step.
The accessors below return a "report step view" that the rescoup outer loop populates (via the setters) so that log lines can show the report-step start and end and a substep counter that increments across chunks. When the view is not set, they fall through to the per-timer fields, so the non-rescoup path's behavior and output are unchanged.