mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Update api for checking availability for group control
This commit is contained in:
@@ -859,7 +859,7 @@ namespace WellGroupHelpers
|
|||||||
= wellState.currentInjectionGroupControl(injectionPhase, group.name());
|
= wellState.currentInjectionGroupControl(injectionPhase, group.name());
|
||||||
if (currentGroupControl == Group::InjectionCMode::FLD || currentGroupControl == Group::InjectionCMode::NONE) {
|
if (currentGroupControl == Group::InjectionCMode::FLD || currentGroupControl == Group::InjectionCMode::NONE) {
|
||||||
// Return if we are not available for parent group.
|
// Return if we are not available for parent group.
|
||||||
if (!group.isAvailableForGroupControl()) {
|
if (!group.injectionGroupControlAvailable(injectionPhase)) {
|
||||||
return std::make_pair(false, 1.0);
|
return std::make_pair(false, 1.0);
|
||||||
}
|
}
|
||||||
// Otherwise: check injection share of parent's control.
|
// Otherwise: check injection share of parent's control.
|
||||||
@@ -1085,7 +1085,7 @@ namespace WellGroupHelpers
|
|||||||
|
|
||||||
if (currentGroupControl == Group::ProductionCMode::FLD || currentGroupControl == Group::ProductionCMode::NONE) {
|
if (currentGroupControl == Group::ProductionCMode::FLD || currentGroupControl == Group::ProductionCMode::NONE) {
|
||||||
// Return if we are not available for parent group.
|
// Return if we are not available for parent group.
|
||||||
if (!group.isAvailableForGroupControl()) {
|
if (!group.productionGroupControlAvailable()) {
|
||||||
return std::make_pair(false, 1);
|
return std::make_pair(false, 1);
|
||||||
}
|
}
|
||||||
// Otherwise: check production share of parent's control.
|
// Otherwise: check production share of parent's control.
|
||||||
|
|||||||
@@ -2075,7 +2075,7 @@ namespace Opm
|
|||||||
|
|
||||||
if (currentGroupControl == Group::InjectionCMode::FLD ||
|
if (currentGroupControl == Group::InjectionCMode::FLD ||
|
||||||
currentGroupControl == Group::InjectionCMode::NONE) {
|
currentGroupControl == Group::InjectionCMode::NONE) {
|
||||||
if (!group.isAvailableForGroupControl()) {
|
if (!group.injectionGroupControlAvailable(injectionPhase)) {
|
||||||
// We cannot go any further up the hierarchy. This could
|
// We cannot go any further up the hierarchy. This could
|
||||||
// be the FIELD group, or any group for which this has
|
// be the FIELD group, or any group for which this has
|
||||||
// been set in GCONINJE or GCONPROD. If we are here
|
// been set in GCONINJE or GCONPROD. If we are here
|
||||||
@@ -2214,7 +2214,7 @@ namespace Opm
|
|||||||
const Group::ProductionCMode& currentGroupControl = well_state.currentProductionGroupControl(group.name());
|
const Group::ProductionCMode& currentGroupControl = well_state.currentProductionGroupControl(group.name());
|
||||||
if (currentGroupControl == Group::ProductionCMode::FLD ||
|
if (currentGroupControl == Group::ProductionCMode::FLD ||
|
||||||
currentGroupControl == Group::ProductionCMode::NONE) {
|
currentGroupControl == Group::ProductionCMode::NONE) {
|
||||||
if (!group.isAvailableForGroupControl()) {
|
if (!group.productionGroupControlAvailable()) {
|
||||||
// We cannot go any further up the hierarchy. This could
|
// We cannot go any further up the hierarchy. This could
|
||||||
// be the FIELD group, or any group for which this has
|
// be the FIELD group, or any group for which this has
|
||||||
// been set in GCONINJE or GCONPROD. If we are here
|
// been set in GCONINJE or GCONPROD. If we are here
|
||||||
|
|||||||
Reference in New Issue
Block a user