From 84934d0c1f357cc60bd125d145a1bf5ce911a692 Mon Sep 17 00:00:00 2001 From: chflo Date: Mon, 27 Jul 2015 13:26:28 +0200 Subject: [PATCH] OPM-218: Fix Flow vs Eclipse restart interval write differences: Override method from SimulatorTimerInterface --- opm/simulators/timestepping/AdaptiveSimulatorTimer.cpp | 2 ++ opm/simulators/timestepping/AdaptiveSimulatorTimer.hpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/opm/simulators/timestepping/AdaptiveSimulatorTimer.cpp b/opm/simulators/timestepping/AdaptiveSimulatorTimer.cpp index fd906eece..383880e1f 100644 --- a/opm/simulators/timestepping/AdaptiveSimulatorTimer.cpp +++ b/opm/simulators/timestepping/AdaptiveSimulatorTimer.cpp @@ -112,6 +112,8 @@ namespace Opm double AdaptiveSimulatorTimer::simulationTimeElapsed() const { return current_time_; } + double AdaptiveSimulatorTimer::simulationStartTimeForCurrentReportStep() const { return start_time_; } + bool AdaptiveSimulatorTimer::done () const { return (current_time_ >= total_time_) ; } double AdaptiveSimulatorTimer::averageStepLength() const diff --git a/opm/simulators/timestepping/AdaptiveSimulatorTimer.hpp b/opm/simulators/timestepping/AdaptiveSimulatorTimer.hpp index ac4bb6ed1..e1afebe52 100644 --- a/opm/simulators/timestepping/AdaptiveSimulatorTimer.hpp +++ b/opm/simulators/timestepping/AdaptiveSimulatorTimer.hpp @@ -71,6 +71,10 @@ namespace Opm /// \brief \copydoc SimulationTimer::simulationTimeElapsed double simulationTimeElapsed() const; + /// \brief \copydoc SimulationTimer::simulationStartTimeForCurrentReportStep + double simulationStartTimeForCurrentReportStep() const; + + /// \brief \copydoc SimulationTimer::done bool done () const;