move checkConvergencePolyMW into WellConvergence

This commit is contained in:
Arne Morten Kvarving
2022-10-27 10:43:44 +02:00
parent 0f8ca0c529
commit 5d4c7f49a2
5 changed files with 48 additions and 46 deletions

View File

@@ -23,6 +23,7 @@
#include <opm/simulators/utils/DeferredLoggingErrorHelpers.hpp>
#include <opm/simulators/linalg/SmallDenseMatrixUtils.hpp>
#include <opm/simulators/wells/VFPHelpers.hpp>
#include <opm/simulators/wells/WellConvergence.hpp>
#include <algorithm>
#include <functional>
@@ -2501,7 +2502,8 @@ namespace Opm
// checking the convergence of the extra equations related to polymer injectivity
if constexpr (Base::has_polymermw) {
this->checkConvergencePolyMW(res, report, this->param_.max_residual_allowed_);
WellConvergence(*this).
checkConvergencePolyMW(res, Bhp, this->param_.max_residual_allowed_, report);
}
}