mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-02 05:49:09 -06:00
Fix minimum newton iteration
We also change the default to 2 to keep the same results
This commit is contained in:
parent
32cf006278
commit
20fb8fa699
@ -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));
|
||||
|
||||
|
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user