mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #4289 from akva2/fix_thp_regression
fix regression in wells
This commit is contained in:
@@ -2285,6 +2285,7 @@ namespace Opm
|
||||
max_pressure,
|
||||
this->connections_.rho(),
|
||||
alq_value,
|
||||
this->getTHPConstraint(summary_state),
|
||||
deferred_logger);
|
||||
auto v = frates(*bhpAtLimit);
|
||||
if (bhpAtLimit && std::all_of(v.cbegin(), v.cend(), [](double i){ return i <= 0; }))
|
||||
@@ -2305,6 +2306,7 @@ namespace Opm
|
||||
max_pressure,
|
||||
this->connections_.rho(),
|
||||
alq_value,
|
||||
this->getTHPConstraint(summary_state),
|
||||
deferred_logger);
|
||||
v = frates(*bhpAtLimit);
|
||||
if(bhpAtLimit && std::all_of(v.cbegin(), v.cend(), [](double i){ return i <= 0; }))
|
||||
|
||||
Reference in New Issue
Block a user