only prediction wells can have THP constraint

This commit is contained in:
Kai Bao 2023-04-27 14:00:49 +02:00
parent 5a2b25ec31
commit a2c6e674dc

View File

@ -192,6 +192,11 @@ double WellInterfaceGeneric::rsRvInj() 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_) {
return true;
}