From 31617da382cf9827ee8c85fe52e582dfac14121e Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Tue, 1 Sep 2015 19:28:56 +0200 Subject: [PATCH] [bugfix] Allow querying the current time step even if we are done. Previously there was an assertion whether the time stepping is still running when querying the time step. After commit 5af794cfd588b this triggered an assertion for Norne. As there is no reason to limit querying the current time step in this way. This commit simply removes the assertion in AdaptiveSimulatorTimer::currentStepLength. This closes OPM/opm-autodiff#446 --- opm/core/simulator/AdaptiveSimulatorTimer.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/opm/core/simulator/AdaptiveSimulatorTimer.cpp b/opm/core/simulator/AdaptiveSimulatorTimer.cpp index fd906eec..9b2737d7 100644 --- a/opm/core/simulator/AdaptiveSimulatorTimer.cpp +++ b/opm/core/simulator/AdaptiveSimulatorTimer.cpp @@ -96,7 +96,6 @@ namespace Opm double AdaptiveSimulatorTimer::currentStepLength () const { - assert( ! done () ); return dt_; }