Made methods const in multi-segment model as well.

This commit is contained in:
Atgeirr Flø Rasmussen 2015-10-15 15:23:03 +02:00 committed by Kai Bao
parent 95eb44e530
commit 81e9c25b10
2 changed files with 7 additions and 7 deletions

View File

@ -252,12 +252,12 @@ namespace Opm {
const std::vector<ADB>& mob_perfcells,
const std::vector<ADB>& b_perfcells,
V& aliveWells,
std::vector<ADB>& cq_s);
std::vector<ADB>& cq_s) const;
void
updatePerfPhaseRatesAndPressures(const std::vector<ADB>& cq_s,
const SolutionState& state,
WellState& xw);
WellState& xw) const;
void
addWellFluxEq(const std::vector<ADB>& cq_s,

View File

@ -566,10 +566,10 @@ namespace Opm {
template <class Grid>
void
BlackoilMultiSegmentModel<Grid>::computeWellFlux(const SolutionState& state,
const std::vector<ADB>& ,
const std::vector<ADB>& ,
V& aliveWells,
std::vector<ADB>& cq_s)
const std::vector<ADB>& /* mob_perfcells */,
const std::vector<ADB>& /* b_perfcells */,
V& aliveWells,
std::vector<ADB>& cq_s) const
{
// if( ! wellsActive() ) return ;
if (wellsMultiSegment().size() == 0) return;
@ -808,7 +808,7 @@ namespace Opm {
template <class Grid>
void BlackoilMultiSegmentModel<Grid>::updatePerfPhaseRatesAndPressures(const std::vector<ADB>& cq_s,
const SolutionState& state,
WellState& xw)
WellState& xw) const
{
// Update the perforation phase rates (used to calculate the pressure drop in the wellbore).
// TODO: now it is so necesary to have a gobal wellsMultiSegment class to store some global information.