mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
only prediction wells can have THP constraint
This commit is contained in:
parent
5a2b25ec31
commit
a2c6e674dc
@ -192,6 +192,11 @@ double WellInterfaceGeneric::rsRvInj() const
|
|||||||
|
|
||||||
bool WellInterfaceGeneric::wellHasTHPConstraints(const SummaryState& summaryState) const
|
bool WellInterfaceGeneric::wellHasTHPConstraints(const SummaryState& summaryState) const
|
||||||
{
|
{
|
||||||
|
// only wells under prediction mode can have THP constraint
|
||||||
|
if (!this->wellEcl().predictionMode()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (dynamic_thp_limit_) {
|
if (dynamic_thp_limit_) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user