mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
FIX. Use rate not group potentials in CheckGroupTargetViolated
This commit is contained in:
parent
363e3c2f4a
commit
b8a0005e8d
@ -261,7 +261,7 @@ checkGroupTargetsViolated(const BasicRates& rates,
|
||||
auto target_opt = this->group_info_.getTarget(rate_type, group_name);
|
||||
if (target_opt) {
|
||||
auto delta_rate = new_rates[rate_type] - rates[rate_type];
|
||||
auto new_group_rate = this->group_info_.getPotential(rate_type, group_name) + efficiency * delta_rate;
|
||||
auto new_group_rate = this->group_info_.getRate(rate_type, group_name) + efficiency * delta_rate;
|
||||
if (new_group_rate > *target_opt) {
|
||||
if (this->debug) {
|
||||
const std::string msg
|
||||
|
Loading…
Reference in New Issue
Block a user