mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
adapting to the change in opm-core
This commit is contained in:
@@ -2032,13 +2032,8 @@ namespace detail {
|
||||
|
||||
const double residualWell = detail::infinityNormWell(residual_.well_eq,
|
||||
linsolver_.parallelInformation());
|
||||
<<<<<<< 002439c5b12c64e112f06d48c747da47031c3852
|
||||
converged_Well = converged_Well && (residualWell < tol_well_control);
|
||||
=======
|
||||
// Hard-coded residual for well control equations.
|
||||
converged_Well = converged_Well && (residualWell < 1.e-7);
|
||||
// converged_Well = converged_Well && (residualWell < Opm::unit::barsa);
|
||||
>>>>>>> checking and outputing the residuals for the well equations.
|
||||
|
||||
const bool converged = converged_Well;
|
||||
|
||||
// if one of the residuals is NaN, throw exception, so that the solver can be restarted
|
||||
@@ -2681,9 +2676,7 @@ namespace detail {
|
||||
asImpl().wellModel().wellCollection()->applyVREPGroupControls(well_voidage_rates, voidage_conversion_coeffs);
|
||||
|
||||
// for the wells under group control, update the currentControls for the well_state
|
||||
const size_t number_node = asImpl().wellModel().wellCollection()->numNode();
|
||||
for (size_t w = 0; w < number_node; ++w) {
|
||||
const WellNode* well_node = asImpl().wellModel().wellCollection()->getNode(w);
|
||||
for (const WellNode* well_node : asImpl().wellModel().wellCollection()->getLeafNodes()) {
|
||||
if (well_node->isInjector() && !well_node->individualControl()) {
|
||||
const int well_index = well_node->selfIndex();
|
||||
well_state.currentControls()[well_index] = well_node->groupControlIndex();
|
||||
|
||||
Reference in New Issue
Block a user