Silence some recently introduced warnings.

This commit is contained in:
Atgeirr Flø Rasmussen 2016-04-21 10:29:09 +02:00
parent 1f64f79f6d
commit 4af2b4a915
3 changed files with 3 additions and 3 deletions

View File

@ -158,7 +158,6 @@ namespace Opm
WellState& xw);
void computeWellPotentials(const Wells* wells,
const BlackoilState& x,
const WellState& xw,
std::vector<double>& well_potentials);

View File

@ -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 <class Implementation>
void SimulatorBase<Implementation>::computeWellPotentials(const Wells* wells,
const BlackoilState& x,
const WellState& xw,
std::vector<double>& well_potentials)
{

View File

@ -181,6 +181,8 @@ namespace Opm
std::vector<double>& rvmax_perf,
std::vector<double>& surf_dens_perf)
{
static_cast<void>(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;