Fix GPMAINT for groups without control

If GPMAINT is used the group does not need a valid control object
This commit is contained in:
Tor Harald Sandve
2023-01-10 15:32:08 +01:00
parent c5be1226d7
commit ceb8d996aa
9 changed files with 86 additions and 39 deletions

View File

@@ -189,7 +189,8 @@ getGroupProductionTargetRate(const Group& group,
const GroupState& group_state,
const Schedule& schedule,
const SummaryState& summaryState,
double efficiencyFactor) const
double efficiencyFactor,
DeferredLogger& deferred_logger) const
{
auto rCoeff = [this](const int id, const int region, std::vector<double>& coeff)
{
@@ -199,7 +200,8 @@ getGroupProductionTargetRate(const Group& group,
return WellGroupControls(*this).getGroupProductionTargetRate(group, well_state,
group_state, schedule,
summaryState,
rCoeff, efficiencyFactor);
rCoeff, efficiencyFactor,
deferred_logger);
}
template class WellInterfaceFluidSystem<BlackOilFluidSystem<double,BlackOilDefaultIndexTraits>>;