mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Output correct information for temporary use.
Change the SimulatorTimer class a little bit to output the totaltime and current time correctly.
This commit is contained in:
@@ -102,7 +102,7 @@ namespace Opm
|
|||||||
/// Current step number.
|
/// Current step number.
|
||||||
int SimulatorTimer::currentStepNum() const
|
int SimulatorTimer::currentStepNum() const
|
||||||
{
|
{
|
||||||
return current_step_;
|
return current_step_ + beginReportStepIdx_;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set current step number.
|
/// Set current step number.
|
||||||
@@ -143,8 +143,7 @@ namespace Opm
|
|||||||
{
|
{
|
||||||
if (timeMap_)
|
if (timeMap_)
|
||||||
return
|
return
|
||||||
timeMap_->getTimePassedUntil(beginReportStepIdx_ + current_step_)
|
timeMap_->getTimePassedUntil(beginReportStepIdx_ + current_step_);
|
||||||
- timeMap_->getTimePassedUntil(beginReportStepIdx_);
|
|
||||||
else
|
else
|
||||||
return current_time_;
|
return current_time_;
|
||||||
}
|
}
|
||||||
@@ -171,8 +170,7 @@ namespace Opm
|
|||||||
{
|
{
|
||||||
if (timeMap_)
|
if (timeMap_)
|
||||||
return
|
return
|
||||||
timeMap_->getTimePassedUntil(endReportStepIdx_) -
|
timeMap_->getTotalTime();
|
||||||
timeMap_->getTimePassedUntil(beginReportStepIdx_);
|
|
||||||
else
|
else
|
||||||
return total_time_;
|
return total_time_;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user