adding variableStateWellIndices to StandardWells

to handle different types of variables later for different types of
wells.
This commit is contained in:
Kai Bao 2016-04-21 17:42:50 +02:00
parent b87920e5e4
commit e7d00f4f99
3 changed files with 18 additions and 2 deletions

View File

@ -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;
}

View File

@ -180,6 +180,11 @@ namespace Opm {
WellState& well_state);
void
variableStateWellIndices(std::vector<int>& indices,
int& next) const;
protected:
bool wells_active_;

View File

@ -1118,4 +1118,16 @@ namespace Opm
}
void
StandardWells::variableStateWellIndices(std::vector<int>& indices,
int& next) const
{
indices[Qs] = next++;
indices[Bhp] = next++;
}
}