mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Make starting timestep more explicitly known
One-based or zero-based? Better be documented (in a way that doesn't promote hard-coding in the clients!)
This commit is contained in:
parent
8159104218
commit
2ba7b3329d
@ -30,7 +30,7 @@ namespace Opm
|
|||||||
|
|
||||||
/// Default constructor.
|
/// Default constructor.
|
||||||
SimulatorTimer::SimulatorTimer()
|
SimulatorTimer::SimulatorTimer()
|
||||||
: current_step_(0),
|
: current_step_(FIRST_STEP),
|
||||||
current_time_(0.0),
|
current_time_(0.0),
|
||||||
start_date_(2012,1,1) // A really arbitrary default starting value?!
|
start_date_(2012,1,1) // A really arbitrary default starting value?!
|
||||||
{
|
{
|
||||||
|
@ -50,6 +50,9 @@ namespace Opm
|
|||||||
/// Total number of steps.
|
/// Total number of steps.
|
||||||
int numSteps() const;
|
int numSteps() const;
|
||||||
|
|
||||||
|
/// First timestep returned from currentStepNum
|
||||||
|
static const int FIRST_STEP = 0;
|
||||||
|
|
||||||
/// Current step number.
|
/// Current step number.
|
||||||
int currentStepNum() const;
|
int currentStepNum() const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user