mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Silence some recently introduced warnings.
This commit is contained in:
parent
1f64f79f6d
commit
4af2b4a915
@ -158,7 +158,6 @@ namespace Opm
|
||||
WellState& xw);
|
||||
|
||||
void computeWellPotentials(const Wells* wells,
|
||||
const BlackoilState& x,
|
||||
const WellState& xw,
|
||||
std::vector<double>& well_potentials);
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user