mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Provide routine to return the step length taken
The output routine needs to know which step that has been taken in the past (to arrive at this result), not which step to take next going forward.
This commit is contained in:
@@ -89,6 +89,12 @@ namespace Opm
|
||||
return timesteps_[current_step_];
|
||||
}
|
||||
|
||||
double SimulatorTimer::stepLengthTaken() const
|
||||
{
|
||||
assert(current_step_ > 0);
|
||||
return timesteps_[current_step_ - 1];
|
||||
}
|
||||
|
||||
/// Current time.
|
||||
double SimulatorTimer::currentTime() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user