add WellConvergence

move checkConvergenceControlEq into it
This commit is contained in:
Arne Morten Kvarving
2022-10-27 10:43:44 +02:00
parent f373c2f908
commit 0f8ca0c529
8 changed files with 202 additions and 187 deletions

View File

@@ -32,6 +32,7 @@
#include <opm/simulators/timestepping/ConvergenceReport.hpp>
#include <opm/simulators/utils/DeferredLoggingErrorHelpers.hpp>
#include <opm/simulators/wells/ParallelWellInfo.hpp>
#include <opm/simulators/wells/WellConvergence.hpp>
#include <opm/simulators/wells/WellInterfaceIndices.hpp>
#include <opm/simulators/wells/WellState.hpp>
#include <opm/simulators/linalg/bda/WellContributions.hpp>
@@ -831,7 +832,12 @@ getWellConvergence(const WellState& well_state,
}
}
this->checkConvergenceControlEq(well_state, report, deferred_logger, maxResidualAllowed);
WellConvergence(baseif_).
checkConvergenceControlEq(well_state,
{1.e3, 1.e4, 1.e-4, 1.e-6, maxResidualAllowed},
std::abs(this->resWell_[0][Bhp]),
report,
deferred_logger);
return report;
}