From a8bc90fe01c2bd2566ec9cd9c0dab8df1f11bfec Mon Sep 17 00:00:00 2001 From: Wenqing Wang <wenqing.wang@ufz.de> Date: Tue, 28 Jul 2020 12:48:19 +0200 Subject: [PATCH] [TimeStepper/TimeLoop] Adjusted the place where to check the stablized stepping --- ProcessLib/TimeLoop.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ProcessLib/TimeLoop.cpp b/ProcessLib/TimeLoop.cpp index 5ca23a0b32a..4310e076411 100644 --- a/ProcessLib/TimeLoop.cpp +++ b/ProcessLib/TimeLoop.cpp @@ -387,6 +387,8 @@ double TimeLoop::computeTimeStepping(const double prev_dt, double& t, dt = _end_time - t; } + dt = NumLib::possiblyClampDtToNextFixedTime(t, dt, + _output->getFixedOutputTimes()); // Check whether the time stepping is stabilized if (std::fabs(dt - prev_dt) < std::numeric_limits<double>::epsilon()) { @@ -406,9 +408,6 @@ double TimeLoop::computeTimeStepping(const double prev_dt, double& t, } } - dt = NumLib::possiblyClampDtToNextFixedTime(t, dt, - _output->getFixedOutputTimes()); - // Reset the time step with the minimum step size, dt // Update the solution of the previous time step. for (std::size_t i = 0; i < _per_process_data.size(); i++) -- GitLab