mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-27 09:40:59 -06:00
only check if wells has negative potentials if check_well_operabilty=true(default)
This commit is contained in:
parent
1486690738
commit
c8bef3bcd5
@ -313,11 +313,11 @@ namespace Opm
|
||||
well_potentials[phase] *= sign;
|
||||
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
|
||||
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");
|
||||
deferred_logger.info(msg);
|
||||
deferred_logger.warning("NEGATIVE_POTENTIALS_INOPERABLE", msg);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1929,11 +1929,11 @@ namespace Opm
|
||||
well_potentials[phase] *= sign;
|
||||
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
|
||||
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");
|
||||
deferred_logger.info(msg);
|
||||
deferred_logger.warning("NEGATIVE_POTENTIALS_INOPERABLE", msg);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user