Fix minimum newton iteration

We also change the default to 2 to keep the same results
This commit is contained in:
Tor Harald Sandve 2024-01-05 15:43:34 +01:00
parent 32cf006278
commit 20fb8fa699
2 changed files with 2 additions and 2 deletions

View File

@ -337,7 +337,7 @@ namespace Opm {
// the step is not considered converged until at least minIter iterations is done
{
auto convrep = getConvergence(timer, iteration, residual_norms);
report.converged = convrep.converged() && iteration > minIter;
report.converged = convrep.converged() && iteration >= minIter;
ConvergenceReport::Severity severity = convrep.severityOfWorstFailure();
convergence_reports_.back().report.push_back(std::move(convrep));

View File

@ -69,7 +69,7 @@ struct NewtonMaxIterations<TypeTag, TTag::FlowNonLinearSolver> {
};
template<class TypeTag>
struct NewtonMinIterations<TypeTag, TTag::FlowNonLinearSolver> {
static constexpr int value = 1;
static constexpr int value = 2;
};
template<class TypeTag>
struct NewtonRelaxationType<TypeTag, TTag::FlowNonLinearSolver> {