diff --git a/dumux/boxmodels/common/boxproblem.hh b/dumux/boxmodels/common/boxproblem.hh index 08568292bacb7799fd066378c42f968f6a214191..718aa63ee52b607d22de288c1e0c19e42e04f1a8 100644 --- a/dumux/boxmodels/common/boxproblem.hh +++ b/dumux/boxmodels/common/boxproblem.hh @@ -465,8 +465,8 @@ public: void timeIntegration() { const int maxFails = 10; + Scalar dt = timeManager().timeStepSize(); for (int i = 0; i < maxFails; ++i) { - Scalar dt = timeManager().timeStepSize(); Scalar nextDt = dt / 2; // update failed @@ -478,6 +478,7 @@ public: return; timeManager().setTimeStepSize(nextDt); + dt = nextDt; } DUNE_THROW(Dune::MathError,