From 434f96db0ad877060ac09f766ee6d1bca2192fd9 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Mon, 29 May 2017 09:48:34 +0200 Subject: [PATCH] FIX output the correct next timestep after convergece failure --- opm/simulators/timestepping/AdaptiveTimeStepping_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/simulators/timestepping/AdaptiveTimeStepping_impl.hpp b/opm/simulators/timestepping/AdaptiveTimeStepping_impl.hpp index 05db6c368..2d24bc919 100644 --- a/opm/simulators/timestepping/AdaptiveTimeStepping_impl.hpp +++ b/opm/simulators/timestepping/AdaptiveTimeStepping_impl.hpp @@ -354,7 +354,7 @@ namespace Opm { if( solver_verbose_ ) { std::string msg; msg = "Solver convergence failed, cutting timestep to " - + std::to_string(unit::convert::to( newTimeStep, unit::day )) + " days.\n"; + + std::to_string(unit::convert::to( substepTimer.currentStepLength(), unit::day )) + " days.\n"; OpmLog::problem(msg); } // reset states