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:
Roland Kaufmann
2013-11-27 00:36:17 +01:00
parent 73dfe849d6
commit f30ab55974
2 changed files with 18 additions and 2 deletions

View File

@@ -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
{