adding a initialStep() function to SimulatorTimer
to indicate if the current step is the inital step.
This commit is contained in:
parent
c58a0fce43
commit
1fc189065c
@ -63,6 +63,12 @@ namespace Opm
|
||||
start_date_ = start_time.date();
|
||||
}
|
||||
|
||||
/// Whether the current step is the first step.
|
||||
bool SimulatorTimer::initialStep() const
|
||||
{
|
||||
return (current_step_ == 0);
|
||||
}
|
||||
|
||||
/// Total number of steps.
|
||||
int SimulatorTimer::numSteps() const
|
||||
{
|
||||
|
@ -49,6 +49,9 @@ namespace Opm
|
||||
/// Use the SimulatorTimer as a shim around opm-parser's Opm::TimeMap
|
||||
void init(TimeMapConstPtr timeMap, size_t report_step = 0);
|
||||
|
||||
/// Whether the current step is the first step.
|
||||
bool initialStep() const;
|
||||
|
||||
/// Total number of steps.
|
||||
int numSteps() const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user