From d3ea5a67ea8150f265ce1cc8f5b0f8e44ee2e736 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Fri, 29 Jan 2021 07:59:56 +0100 Subject: [PATCH] reset the iteration count in the newtonSolver --- opm/simulators/flow/BlackoilModelEbos.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opm/simulators/flow/BlackoilModelEbos.hpp b/opm/simulators/flow/BlackoilModelEbos.hpp index d3cbba5a3..f075e5988 100644 --- a/opm/simulators/flow/BlackoilModelEbos.hpp +++ b/opm/simulators/flow/BlackoilModelEbos.hpp @@ -245,6 +245,8 @@ namespace Opm { ebosSimulator_.setTime(timer.simulationTimeElapsed()); ebosSimulator_.setTimeStepSize(timer.currentStepLength()); ebosSimulator_.problem().beginTimeStep(); + // we also need to reset the iteration count + ebosSimulator_.model().newtonMethod().setIterationIndex(0); unsigned numDof = ebosSimulator_.model().numGridDof(); wasSwitched_.resize(numDof);