adapting to the change in opm-core

This commit is contained in:
Kai Bao
2016-11-16 12:19:26 +01:00
parent f85da3768e
commit d06acaa4b5
2 changed files with 8 additions and 10 deletions

View File

@@ -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();