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
commit 2189706822
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}