reset the iteration count in the newtonSolver

This commit is contained in:
Tor Harald Sandve
2021-01-29 07:59:56 +01:00
parent 9360d0a646
commit d3ea5a67ea

View File

@@ -245,6 +245,8 @@ namespace Opm {
ebosSimulator_.setTime(timer.simulationTimeElapsed()); ebosSimulator_.setTime(timer.simulationTimeElapsed());
ebosSimulator_.setTimeStepSize(timer.currentStepLength()); ebosSimulator_.setTimeStepSize(timer.currentStepLength());
ebosSimulator_.problem().beginTimeStep(); ebosSimulator_.problem().beginTimeStep();
// we also need to reset the iteration count
ebosSimulator_.model().newtonMethod().setIterationIndex(0);
unsigned numDof = ebosSimulator_.model().numGridDof(); unsigned numDof = ebosSimulator_.model().numGridDof();
wasSwitched_.resize(numDof); wasSwitched_.resize(numDof);