mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Minor adjustment avoids exception when used with FIELD group.
This commit is contained in:
parent
b90cf68d46
commit
8ac8b207ca
@ -194,7 +194,7 @@ namespace WellGroupHelpers
|
|||||||
double& factor)
|
double& factor)
|
||||||
{
|
{
|
||||||
factor *= group.getGroupEfficiencyFactor();
|
factor *= group.getGroupEfficiencyFactor();
|
||||||
if (group.parent() != "FIELD")
|
if (group.parent() != "FIELD" && !group.parent().empty())
|
||||||
accumulateGroupEfficiencyFactor(
|
accumulateGroupEfficiencyFactor(
|
||||||
schedule.getGroup(group.parent(), reportStepIdx), schedule, reportStepIdx, factor);
|
schedule.getGroup(group.parent(), reportStepIdx), schedule, reportStepIdx, factor);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user