diff --git a/opm/simulators/timestepping/AdaptiveTimeStepping_impl.hpp b/opm/simulators/timestepping/AdaptiveTimeStepping_impl.hpp index 23ef1dd50..3176ce26b 100644 --- a/opm/simulators/timestepping/AdaptiveTimeStepping_impl.hpp +++ b/opm/simulators/timestepping/AdaptiveTimeStepping_impl.hpp @@ -291,7 +291,12 @@ namespace Opm { { // increase restart counter if( restarts >= solver_restart_max_ ) { - OPM_THROW(Opm::NumericalProblem,"Solver failed to converge after " << restarts << " restarts."); + const auto msg = std::string("Solver failed to converge after ") + + std::to_string(restarts) + " restarts."; + if (solver_verbose_) { + OpmLog::error(msg); + } + OPM_THROW_NOLOG(Opm::NumericalProblem, msg); } const double newTimeStep = restart_factor_ * dt;