mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
adding variableStateWellIndices to StandardWells
to handle different types of variables later for different types of wells.
This commit is contained in:
parent
b87920e5e4
commit
e7d00f4f99
@ -604,8 +604,7 @@ namespace detail {
|
||||
if (active_[Gas]) {
|
||||
indices[Xvar] = next++;
|
||||
}
|
||||
indices[Qs] = next++;
|
||||
indices[Bhp] = next++;
|
||||
asImpl().stdWells().variableStateWellIndices(indices, next);
|
||||
assert(next == fluid_.numPhases() + 2);
|
||||
return indices;
|
||||
}
|
||||
|
@ -180,6 +180,11 @@ namespace Opm {
|
||||
WellState& well_state);
|
||||
|
||||
|
||||
void
|
||||
variableStateWellIndices(std::vector<int>& indices,
|
||||
int& next) const;
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
bool wells_active_;
|
||||
|
@ -1118,4 +1118,16 @@ namespace Opm
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void
|
||||
StandardWells::variableStateWellIndices(std::vector<int>& indices,
|
||||
int& next) const
|
||||
{
|
||||
indices[Qs] = next++;
|
||||
indices[Bhp] = next++;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user