Let the simulator to re-assemble when iteration == minIter()

Let the simulator re-assemble and re-calculate the residuls for the case
when the simultor is converged but it was forced to take one more
iteration due to iteration < minIter().
This commit is contained in:
Tor Harald Sandve 2016-12-20 10:46:03 +01:00
parent 4fdf57db04
commit bb83504172

View File

@ -147,7 +147,7 @@ namespace Opm
converged = report.converged; converged = report.converged;
iteration += 1; iteration += 1;
} while ( (!converged && (iteration <= maxIter())) || (iteration < minIter())); } while ( (!converged && (iteration <= maxIter())) || (iteration <= minIter()));
if (!converged) { if (!converged) {
OPM_THROW(Opm::NumericalProblem, "Failed to complete a time step within "+std::to_string(maxIter())+" iterations."); OPM_THROW(Opm::NumericalProblem, "Failed to complete a time step within "+std::to_string(maxIter())+" iterations.");