From 13ff454e56d8016aadd4e7993459747b2965f9c1 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Tue, 21 Jul 2020 11:35:43 +0200 Subject: [PATCH] Remove unused variable groups from BlackoilWellModel::wellsToState. Alternatively it could be marked as [[maybe_unused]] if it will be used sometime in the future. --- opm/simulators/wells/BlackoilWellModel.hpp | 1 - opm/simulators/wells/BlackoilWellModel_impl.hpp | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/opm/simulators/wells/BlackoilWellModel.hpp b/opm/simulators/wells/BlackoilWellModel.hpp index 068a11dfe..0af4bd0d6 100644 --- a/opm/simulators/wells/BlackoilWellModel.hpp +++ b/opm/simulators/wells/BlackoilWellModel.hpp @@ -403,7 +403,6 @@ namespace Opm { // convert well data from opm-common to well state from opm-core void wellsToState( const data::Wells& wells, - const data::GroupValues& groups, const PhaseUsage& phases, const bool handle_ms_well, WellStateFullyImplicitBlackoil& state ) const; diff --git a/opm/simulators/wells/BlackoilWellModel_impl.hpp b/opm/simulators/wells/BlackoilWellModel_impl.hpp index 0299df9f7..94bdb9326 100644 --- a/opm/simulators/wells/BlackoilWellModel_impl.hpp +++ b/opm/simulators/wells/BlackoilWellModel_impl.hpp @@ -545,7 +545,7 @@ namespace Opm { const size_t numCells = Opm::UgGridHelpers::numCells(grid()); const bool handle_ms_well = (param_.use_multisegment_well_ && anyMSWellOpenLocal()); well_state_.resize(wells_ecl_, schedule(), handle_ms_well, numCells, phaseUsage, well_perf_data_, summaryState, globalNumWells); // Resize for restart step - wellsToState(restartValues.wells, restartValues.groups, phaseUsage, handle_ms_well, well_state_); + wellsToState(restartValues.wells, phaseUsage, handle_ms_well, well_state_); } previous_well_state_ = well_state_; @@ -1597,7 +1597,6 @@ namespace Opm { void BlackoilWellModel:: wellsToState( const data::Wells& wells, - const data::GroupValues& groups, const PhaseUsage& phases, const bool handle_ms_well, WellStateFullyImplicitBlackoil& state) const