Merge pull request #4608 from atgeirr/allow-FIELD-parent

Minor adjustment avoids exception when used with FIELD group.
This commit is contained in:
Markus Blatt
2023-04-26 14:14:24 +02:00
committed by GitHub

View File

@@ -194,7 +194,7 @@ namespace WellGroupHelpers
double& factor)
{
factor *= group.getGroupEfficiencyFactor();
if (group.parent() != "FIELD")
if (group.parent() != "FIELD" && !group.parent().empty())
accumulateGroupEfficiencyFactor(
schedule.getGroup(group.parent(), reportStepIdx), schedule, reportStepIdx, factor);
}