mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
FractionCalculator: remove unused summary_state member
This commit is contained in:
parent
8ff32b594a
commit
5dd5f5a8f4
@ -819,7 +819,6 @@ namespace WellGroupHelpers
|
|||||||
}
|
}
|
||||||
|
|
||||||
FractionCalculator::FractionCalculator(const Schedule& schedule,
|
FractionCalculator::FractionCalculator(const Schedule& schedule,
|
||||||
const SummaryState& summary_state,
|
|
||||||
const WellStateFullyImplicitBlackoil& well_state,
|
const WellStateFullyImplicitBlackoil& well_state,
|
||||||
const GroupState& group_state,
|
const GroupState& group_state,
|
||||||
const int report_step,
|
const int report_step,
|
||||||
@ -829,7 +828,6 @@ namespace WellGroupHelpers
|
|||||||
const bool is_producer,
|
const bool is_producer,
|
||||||
const Phase injection_phase)
|
const Phase injection_phase)
|
||||||
: schedule_(schedule)
|
: schedule_(schedule)
|
||||||
, summary_state_(summary_state)
|
|
||||||
, well_state_(well_state)
|
, well_state_(well_state)
|
||||||
, group_state_(group_state)
|
, group_state_(group_state)
|
||||||
, report_step_(report_step)
|
, report_step_(report_step)
|
||||||
@ -1028,7 +1026,7 @@ namespace WellGroupHelpers
|
|||||||
gratTargetFromSales = group_state.grat_sales_target(group.name());
|
gratTargetFromSales = group_state.grat_sales_target(group.name());
|
||||||
|
|
||||||
TargetCalculator tcalc(currentGroupControl, pu, resv_coeff, gratTargetFromSales);
|
TargetCalculator tcalc(currentGroupControl, pu, resv_coeff, gratTargetFromSales);
|
||||||
FractionCalculator fcalc(schedule, summaryState, wellState, group_state, reportStepIdx, guideRate, tcalc.guideTargetMode(), pu, true, Phase::OIL);
|
FractionCalculator fcalc(schedule, wellState, group_state, reportStepIdx, guideRate, tcalc.guideTargetMode(), pu, true, Phase::OIL);
|
||||||
|
|
||||||
auto localFraction = [&](const std::string& child) { return fcalc.localFraction(child, name); };
|
auto localFraction = [&](const std::string& child) { return fcalc.localFraction(child, name); };
|
||||||
|
|
||||||
@ -1152,7 +1150,7 @@ namespace WellGroupHelpers
|
|||||||
sales_target = gconsale.sales_target;
|
sales_target = gconsale.sales_target;
|
||||||
}
|
}
|
||||||
InjectionTargetCalculator tcalc(currentGroupControl, pu, resv_coeff, group.name(), sales_target, group_state, injectionPhase, deferred_logger);
|
InjectionTargetCalculator tcalc(currentGroupControl, pu, resv_coeff, group.name(), sales_target, group_state, injectionPhase, deferred_logger);
|
||||||
FractionCalculator fcalc(schedule, summaryState, wellState, group_state, reportStepIdx, guideRate, tcalc.guideTargetMode(), pu, false, injectionPhase);
|
FractionCalculator fcalc(schedule, wellState, group_state, reportStepIdx, guideRate, tcalc.guideTargetMode(), pu, false, injectionPhase);
|
||||||
|
|
||||||
auto localFraction = [&](const std::string& child) { return fcalc.localFraction(child, name); };
|
auto localFraction = [&](const std::string& child) { return fcalc.localFraction(child, name); };
|
||||||
|
|
||||||
|
@ -314,7 +314,6 @@ namespace WellGroupHelpers
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
FractionCalculator(const Schedule& schedule,
|
FractionCalculator(const Schedule& schedule,
|
||||||
const SummaryState& summary_state,
|
|
||||||
const WellStateFullyImplicitBlackoil& well_state,
|
const WellStateFullyImplicitBlackoil& well_state,
|
||||||
const GroupState& group_state,
|
const GroupState& group_state,
|
||||||
const int report_step,
|
const int report_step,
|
||||||
@ -333,7 +332,6 @@ namespace WellGroupHelpers
|
|||||||
int groupControlledWells(const std::string& group_name, const std::string& always_included_child);
|
int groupControlledWells(const std::string& group_name, const std::string& always_included_child);
|
||||||
GuideRate::RateVector getGroupRateVector(const std::string& group_name);
|
GuideRate::RateVector getGroupRateVector(const std::string& group_name);
|
||||||
const Schedule& schedule_;
|
const Schedule& schedule_;
|
||||||
const SummaryState& summary_state_;
|
|
||||||
const WellStateFullyImplicitBlackoil& well_state_;
|
const WellStateFullyImplicitBlackoil& well_state_;
|
||||||
const GroupState& group_state_;
|
const GroupState& group_state_;
|
||||||
int report_step_;
|
int report_step_;
|
||||||
|
@ -2243,7 +2243,7 @@ namespace Opm
|
|||||||
sales_target = gconsale.sales_target;
|
sales_target = gconsale.sales_target;
|
||||||
}
|
}
|
||||||
WellGroupHelpers::InjectionTargetCalculator tcalc(currentGroupControl, pu, resv_coeff, group.name(), sales_target, group_state, injectionPhase, deferred_logger);
|
WellGroupHelpers::InjectionTargetCalculator tcalc(currentGroupControl, pu, resv_coeff, group.name(), sales_target, group_state, injectionPhase, deferred_logger);
|
||||||
WellGroupHelpers::FractionCalculator fcalc(schedule, summaryState, well_state, group_state, current_step_, guide_rate_, tcalc.guideTargetMode(), pu, false, injectionPhase);
|
WellGroupHelpers::FractionCalculator fcalc(schedule, well_state, group_state, current_step_, guide_rate_, tcalc.guideTargetMode(), pu, false, injectionPhase);
|
||||||
|
|
||||||
auto localFraction = [&](const std::string& child) {
|
auto localFraction = [&](const std::string& child) {
|
||||||
return fcalc.localFraction(child, "");
|
return fcalc.localFraction(child, "");
|
||||||
@ -2338,7 +2338,7 @@ namespace Opm
|
|||||||
gratTargetFromSales = group_state.grat_sales_target(group.name());
|
gratTargetFromSales = group_state.grat_sales_target(group.name());
|
||||||
|
|
||||||
WellGroupHelpers::TargetCalculator tcalc(currentGroupControl, pu, resv_coeff, gratTargetFromSales);
|
WellGroupHelpers::TargetCalculator tcalc(currentGroupControl, pu, resv_coeff, gratTargetFromSales);
|
||||||
WellGroupHelpers::FractionCalculator fcalc(schedule, summaryState, well_state, group_state, current_step_, guide_rate_, tcalc.guideTargetMode(), pu, true, Phase::OIL);
|
WellGroupHelpers::FractionCalculator fcalc(schedule, well_state, group_state, current_step_, guide_rate_, tcalc.guideTargetMode(), pu, true, Phase::OIL);
|
||||||
|
|
||||||
auto localFraction = [&](const std::string& child) {
|
auto localFraction = [&](const std::string& child) {
|
||||||
return fcalc.localFraction(child, "");
|
return fcalc.localFraction(child, "");
|
||||||
|
Loading…
Reference in New Issue
Block a user