mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
reset the iteration count in the newtonSolver
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user