Merge pull request #3037 from totto82/resetIter

reset the iteration count in the newtonSolver
This commit is contained in:
Markus Blatt
2021-01-29 08:33:17 +01:00
committed by GitHub

View File

@@ -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);