From f034ca981ed3cbfece1017481627ffe4c53733da Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Sun, 23 May 2021 13:47:04 +0200 Subject: [PATCH] GasLiftStage2: pass summary state --- opm/simulators/wells/BlackoilWellModel_impl.hpp | 4 +++- opm/simulators/wells/GasLiftStage2.hpp | 1 + opm/simulators/wells/GasLiftStage2_impl.hpp | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/opm/simulators/wells/BlackoilWellModel_impl.hpp b/opm/simulators/wells/BlackoilWellModel_impl.hpp index 7806ea5ac..a61d02598 100644 --- a/opm/simulators/wells/BlackoilWellModel_impl.hpp +++ b/opm/simulators/wells/BlackoilWellModel_impl.hpp @@ -1108,7 +1108,9 @@ namespace Opm { GLiftWellStateMap &glift_well_state_map) { - GasLiftStage2 glift {this->phaseUsage(), ebosSimulator_, deferred_logger, this->wellState(), + GasLiftStage2 glift {this->phaseUsage(), ebosSimulator_, + ebosSimulator_.vanguard().summaryState(), + deferred_logger, this->wellState(), prod_wells, glift_wells, glift_well_state_map}; glift.runOptimize(); } diff --git a/opm/simulators/wells/GasLiftStage2.hpp b/opm/simulators/wells/GasLiftStage2.hpp index 5615fabb9..31e4efdfb 100644 --- a/opm/simulators/wells/GasLiftStage2.hpp +++ b/opm/simulators/wells/GasLiftStage2.hpp @@ -73,6 +73,7 @@ namespace Opm GasLiftStage2( const PhaseUsage& phase_usage, const Simulator &ebos_simulator, + const SummaryState& summary_state, DeferredLogger &deferred_logger, WellState &well_state, GLiftProdWells &prod_wells, diff --git a/opm/simulators/wells/GasLiftStage2_impl.hpp b/opm/simulators/wells/GasLiftStage2_impl.hpp index a54b6a02b..cae78a06f 100644 --- a/opm/simulators/wells/GasLiftStage2_impl.hpp +++ b/opm/simulators/wells/GasLiftStage2_impl.hpp @@ -38,6 +38,7 @@ GasLiftStage2:: GasLiftStage2( const PhaseUsage& phase_usage, const Simulator &ebos_simulator, + const SummaryState& summary_state, DeferredLogger &deferred_logger, WellState &well_state, GLiftProdWells &prod_wells, @@ -50,7 +51,7 @@ GasLiftStage2( stage1_wells_{glift_wells}, well_state_map_{state_map}, report_step_idx_{ebos_simulator.episodeIndex()}, - summary_state_{ebos_simulator.vanguard().summaryState()}, + summary_state_{summary_state}, schedule_{ebos_simulator.vanguard().schedule()}, phase_usage_{phase_usage}, glo_{schedule_.glo(report_step_idx_)},