Merge pull request #4615 from GitPaean/only_prediction_well_has_thp_constraint

only prediction wells can have THP constraint
This commit is contained in:
Bård Skaflestad 2023-05-05 09:37:26 +02:00 committed by GitHub
commit b4945a0a5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}