mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Made methods const in multi-segment model as well.
This commit is contained in:
parent
95eb44e530
commit
81e9c25b10
@ -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,
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user