diff --git a/opm/autodiff/SimulatorBase.hpp b/opm/autodiff/SimulatorBase.hpp index f9e6ac42a4..6f25c722a4 100644 --- a/opm/autodiff/SimulatorBase.hpp +++ b/opm/autodiff/SimulatorBase.hpp @@ -158,7 +158,6 @@ namespace Opm WellState& xw); void computeWellPotentials(const Wells* wells, - const BlackoilState& x, const WellState& xw, std::vector& well_potentials); diff --git a/opm/autodiff/SimulatorBase_impl.hpp b/opm/autodiff/SimulatorBase_impl.hpp index 915ad40e26..b31a8a617e 100644 --- a/opm/autodiff/SimulatorBase_impl.hpp +++ b/opm/autodiff/SimulatorBase_impl.hpp @@ -225,7 +225,7 @@ namespace Opm // The well potentials are only computed if they are needed // For now thay are only used to determine default guide rates for group controlled wells if ( is_well_potentials_computed ) { - asImpl().computeWellPotentials(wells, state, well_state, well_potentials); + asImpl().computeWellPotentials(wells, well_state, well_potentials); } } @@ -391,7 +391,6 @@ namespace Opm template void SimulatorBase::computeWellPotentials(const Wells* wells, - const BlackoilState& x, const WellState& xw, std::vector& well_potentials) { diff --git a/opm/autodiff/StandardWells_impl.hpp b/opm/autodiff/StandardWells_impl.hpp index b086984f5e..20c97a751c 100644 --- a/opm/autodiff/StandardWells_impl.hpp +++ b/opm/autodiff/StandardWells_impl.hpp @@ -181,6 +181,8 @@ namespace Opm std::vector& rvmax_perf, std::vector& surf_dens_perf) { + static_cast(active); // Silence unused argument warning in release mode. + const int nperf = wells().well_connpos[wells().number_of_wells]; const int nw = wells().number_of_wells;