diff --git a/opm/simulators/wells/BlackoilWellModel_impl.hpp b/opm/simulators/wells/BlackoilWellModel_impl.hpp index b46c102b7..da495f39e 100644 --- a/opm/simulators/wells/BlackoilWellModel_impl.hpp +++ b/opm/simulators/wells/BlackoilWellModel_impl.hpp @@ -1108,10 +1108,10 @@ namespace Opm { GLiftWellStateMap &glift_well_state_map) { - GasLiftStage2 glift {this->ebosSimulator_.vanguard().grid().comm(), + GasLiftStage2 glift {this->ebosSimulator_.episodeIndex(), + this->ebosSimulator_.vanguard().grid().comm(), this->phaseUsage(), ebosSimulator_.vanguard().schedule(), - ebosSimulator_, ebosSimulator_.vanguard().summaryState(), deferred_logger, this->wellState(), prod_wells, glift_wells, glift_well_state_map}; diff --git a/opm/simulators/wells/GasLiftStage2.hpp b/opm/simulators/wells/GasLiftStage2.hpp index b838671c5..53e6f4f1d 100644 --- a/opm/simulators/wells/GasLiftStage2.hpp +++ b/opm/simulators/wells/GasLiftStage2.hpp @@ -51,7 +51,6 @@ namespace Opm { template class GasLiftStage2 { - using Simulator = GetPropType; using GasLiftSingleWell = ::Opm::GasLiftSingleWell; using GLiftOptWells = std::map>; using GLiftProdWells = std::map *>; @@ -71,10 +70,10 @@ namespace Opm static const int Gas = BlackoilPhases::Vapour; public: GasLiftStage2( + const int report_step_idx, const Communication& comm, const PhaseUsage& phase_usage, const Schedule& schedule, - const Simulator &ebos_simulator, const SummaryState& summary_state, DeferredLogger &deferred_logger, WellState &well_state, diff --git a/opm/simulators/wells/GasLiftStage2_impl.hpp b/opm/simulators/wells/GasLiftStage2_impl.hpp index 3f81ac253..33c008729 100644 --- a/opm/simulators/wells/GasLiftStage2_impl.hpp +++ b/opm/simulators/wells/GasLiftStage2_impl.hpp @@ -36,10 +36,10 @@ namespace Opm { template GasLiftStage2:: GasLiftStage2( + const int report_step_idx, const Communication& comm, const PhaseUsage& phase_usage, const Schedule& schedule, - const Simulator &ebos_simulator, const SummaryState& summary_state, DeferredLogger &deferred_logger, WellState &well_state, @@ -52,7 +52,7 @@ GasLiftStage2( prod_wells_{prod_wells}, stage1_wells_{glift_wells}, well_state_map_{state_map}, - report_step_idx_{ebos_simulator.episodeIndex()}, + report_step_idx_{report_step_idx}, summary_state_{summary_state}, schedule_{schedule}, phase_usage_{phase_usage},