mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #4608 from atgeirr/allow-FIELD-parent
Minor adjustment avoids exception when used with FIELD group.
This commit is contained in:
commit
2189706822
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user