mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #4584 from GitPaean/fixing_unopen_injector
checking Producer or Injector when comparing bhp against BHP constraint during well operability check
This commit is contained in:
commit
688d575802
@ -1222,7 +1222,8 @@ namespace Opm
|
||||
this->operability_status_.can_obtain_bhp_with_thp_limit = true;
|
||||
|
||||
const double bhp_limit = WellBhpThpCalculator(*this).mostStrictBhpFromBhpLimits(summaryState);
|
||||
this->operability_status_.obey_bhp_limit_with_thp_limit = (*obtain_bhp >= bhp_limit);
|
||||
this->operability_status_.obey_bhp_limit_with_thp_limit = this->isProducer() ?
|
||||
*obtain_bhp >= bhp_limit : *obtain_bhp <= bhp_limit ;
|
||||
|
||||
const double thp_limit = this->getTHPConstraint(summaryState);
|
||||
if (this->isProducer() && *obtain_bhp < thp_limit) {
|
||||
|
Loading…
Reference in New Issue
Block a user