make sure the current well are included in the local fraction sum

This commit is contained in:
Tor Harald Sandve committed 2021-06-28 11:47:13 +02:00
1 parent 3fe922b27f
commit 4aaf86d5ef
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -143,7 +143,7 @@ getGroupInjectionControl(const Group& group,
WellGroupHelpers::FractionCalculator fcalc(schedule, well_state, group_state, baseif_.currentStep(), baseif_.guideRate(), tcalc.guideTargetMode(), pu, false, injectionPhase);
auto localFraction = [&](const std::string& child) {
return fcalc.localFraction(child, "");
return fcalc.localFraction(child, child);
};
auto localReduction = [&](const std::string& group_name) {
@@ -237,7 +237,7 @@ getGroupProductionControl(const Group& group,
WellGroupHelpers::FractionCalculator fcalc(schedule, well_state, group_state, baseif_.currentStep(), baseif_.guideRate(), tcalc.guideTargetMode(), pu, true, Phase::OIL);
auto localFraction = [&](const std::string& child) {
return fcalc.localFraction(child, "");
return fcalc.localFraction(child, child);
};
auto localReduction = [&](const std::string& group_name) {
@@ -998,7 +998,7 @@ getGroupInjectionTargetRate(const Group& group,
WellGroupHelpers::FractionCalculator fcalc(schedule, well_state, group_state, currentStep(), guideRate(), tcalc.guideTargetMode(), pu, false, injectionPhase);
auto localFraction = [&](const std::string& child) {
return fcalc.localFraction(child, "");
return fcalc.localFraction(child, child); //Note child needs to be passed to always include since the global isGrup map is not updated yet.
};
auto localReduction = [&](const std::string& group_name) {
@@ -1070,7 +1070,7 @@ getGroupProductionTargetRate(const Group& group,
WellGroupHelpers::FractionCalculator fcalc(schedule, well_state, group_state, currentStep(), guideRate(), tcalc.guideTargetMode(), pu, true, Phase::OIL);
auto localFraction = [&](const std::string& child) {
return fcalc.localFraction(child, "");
return fcalc.localFraction(child, child); //Note child needs to be passed to always include since the global isGrup map is not updated yet.
};
auto localReduction = [&](const std::string& group_name) {