mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-29 04:23:48 -06:00
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:
parent
4fdf57db04
commit
bb83504172
@ -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.");
|
||||||
|
Loading…
Reference in New Issue
Block a user