only check if wells has negative potentials if check_well_operabilty=true(default)

This commit is contained in:
Tor Harald Sandve committed 2022-04-22 08:19:33 +02:00
1 parent 1486690738
commit c8bef3bcd5
2 files changed
+4 -4

No files matched your search

@@ -313,11 +313,11 @@ namespace Opm
well_potentials[phase] *= sign; well_potentials[phase] *= sign;
total_potential += well_potentials[phase]; total_potential += well_potentials[phase];
} }
if (total_potential < 0.0) { if (total_potential < 0.0 && this->param_.check_well_operability_) {
// wells with negative potentials are not operable // wells with negative potentials are not operable
this->operability_status_.has_negative_potentials = true; this->operability_status_.has_negative_potentials = true;
const std::string msg = std::string("well ") + this->name() + std::string(": has non negative potentials is not operable"); const std::string msg = std::string("well ") + this->name() + std::string(": has non negative potentials is not operable");
deferred_logger.info(msg); deferred_logger.warning("NEGATIVE_POTENTIALS_INOPERABLE", msg);
} }
} }
+2 -2
View File
@@ -1929,11 +1929,11 @@ namespace Opm
well_potentials[phase] *= sign; well_potentials[phase] *= sign;
total_potential += well_potentials[phase]; total_potential += well_potentials[phase];
} }
if (total_potential < 0.0) { if (total_potential < 0.0 && this->param_.check_well_operability_) {
// wells with negative potentials are not operable // wells with negative potentials are not operable
this->operability_status_.has_negative_potentials = true; this->operability_status_.has_negative_potentials = true;
const std::string msg = std::string("well ") + this->name() + std::string(": has negative potentials and is not operable"); const std::string msg = std::string("well ") + this->name() + std::string(": has negative potentials and is not operable");
deferred_logger.info(msg); deferred_logger.warning("NEGATIVE_POTENTIALS_INOPERABLE", msg);
} }
} }