mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #5094 from totto82/fix_minIter
Fix minimum newton iteration
This commit is contained in:
commit
0c9ab1ce47
@ -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