From b7d90de9ccea6522f99aeca3cb47358fee113421 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Sun, 23 May 2021 13:47:04 +0200 Subject: [PATCH] GasLiftStage2: drop unused ebos_simulator_ member --- opm/simulators/wells/GasLiftStage2.hpp | 1 - opm/simulators/wells/GasLiftStage2_impl.hpp | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/opm/simulators/wells/GasLiftStage2.hpp b/opm/simulators/wells/GasLiftStage2.hpp index 351a7ed94..5615fabb9 100644 --- a/opm/simulators/wells/GasLiftStage2.hpp +++ b/opm/simulators/wells/GasLiftStage2.hpp @@ -131,7 +131,6 @@ namespace Opm DeferredLogger &deferred_logger_; - const Simulator &ebos_simulator_; WellState &well_state_; GLiftProdWells &prod_wells_; GLiftOptWells &stage1_wells_; diff --git a/opm/simulators/wells/GasLiftStage2_impl.hpp b/opm/simulators/wells/GasLiftStage2_impl.hpp index bcd398985..a54b6a02b 100644 --- a/opm/simulators/wells/GasLiftStage2_impl.hpp +++ b/opm/simulators/wells/GasLiftStage2_impl.hpp @@ -45,13 +45,12 @@ GasLiftStage2( GLiftWellStateMap &state_map ) : deferred_logger_{deferred_logger}, - ebos_simulator_{ebos_simulator}, well_state_{well_state}, prod_wells_{prod_wells}, stage1_wells_{glift_wells}, well_state_map_{state_map}, - report_step_idx_{ebos_simulator_.episodeIndex()}, - summary_state_{ebos_simulator_.vanguard().summaryState()}, + report_step_idx_{ebos_simulator.episodeIndex()}, + summary_state_{ebos_simulator.vanguard().summaryState()}, schedule_{ebos_simulator.vanguard().schedule()}, phase_usage_{phase_usage}, glo_{schedule_.glo(report_step_idx_)}, @@ -61,7 +60,7 @@ GasLiftStage2( // this->time_step_idx_ // = this->ebos_simulator_.model().newtonMethod().currentTimeStep(); this->nonlinear_iteration_idx_ - = this->ebos_simulator_.model().newtonMethod().numIterations(); + = ebos_simulator.model().newtonMethod().numIterations(); }