mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-30 11:06:55 -06:00
Remove unused argument from computeWellPotentials()
This commit is contained in:
parent
e4b52a457f
commit
a2bff9149a
@ -157,8 +157,7 @@ namespace Opm
|
|||||||
const BlackoilState& x,
|
const BlackoilState& x,
|
||||||
WellState& xw);
|
WellState& xw);
|
||||||
|
|
||||||
void computeWellPotentials(const std::size_t step,
|
void computeWellPotentials(const Wells* wells,
|
||||||
const Wells* wells,
|
|
||||||
const BlackoilState& x,
|
const BlackoilState& x,
|
||||||
const WellState& xw,
|
const WellState& xw,
|
||||||
std::vector<double>& well_potentials);
|
std::vector<double>& well_potentials);
|
||||||
|
@ -223,9 +223,9 @@ namespace Opm
|
|||||||
++timer;
|
++timer;
|
||||||
prev_well_state = well_state;
|
prev_well_state = well_state;
|
||||||
// Compute Well potentials (only used to determine default guide rates for group controlled wells)
|
// Compute Well potentials (only used to determine default guide rates for group controlled wells)
|
||||||
if (schedule->numGroups() > 0 ) {
|
// TODO: add some logic to avoid unnecessary calulations of well potentials.
|
||||||
asImpl().computeWellPotentials(timer.currentStepNum(), wells, state, well_state, well_potentials);
|
asImpl().computeWellPotentials(wells, state, well_state, well_potentials);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write final simulation state.
|
// Write final simulation state.
|
||||||
@ -389,14 +389,14 @@ namespace Opm
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class Implementation>
|
template <class Implementation>
|
||||||
void SimulatorBase<Implementation>::computeWellPotentials(const std::size_t step,
|
void SimulatorBase<Implementation>::computeWellPotentials(const Wells* wells,
|
||||||
const Wells* wells,
|
|
||||||
const BlackoilState& x,
|
const BlackoilState& x,
|
||||||
const WellState& xw,
|
const WellState& xw,
|
||||||
std::vector<double>& well_potentials)
|
std::vector<double>& well_potentials)
|
||||||
{
|
{
|
||||||
const int nw = wells->number_of_wells;
|
const int nw = wells->number_of_wells;
|
||||||
const int np = wells->number_of_phases;
|
const int np = wells->number_of_phases;
|
||||||
|
|
||||||
well_potentials.clear();
|
well_potentials.clear();
|
||||||
well_potentials.resize(nw*np,0.0);
|
well_potentials.resize(nw*np,0.0);
|
||||||
for (int w = 0; w < nw; ++w) {
|
for (int w = 0; w < nw; ++w) {
|
||||||
|
Loading…
Reference in New Issue
Block a user