mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 09:22:05 -05:00
only check if wells has negative potentials if check_well_operabilty=true(default)
This commit is contained in:
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user