mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-26 07:30:08 -05:00
getPrimaryVarsDomain: move to BlackoilWellModelGeneric
This commit is contained in:
1 parent
5217e63309
commit
a36d40957b
4 files changed
+16
-18
No files matched your search
@@ -2056,6 +2056,21 @@ logPrimaryVars() const
|
||||
OpmLog::debug(os.str());
|
||||
}
|
||||
|
||||
template<class Scalar>
|
||||
std::vector<Scalar>
|
||||
BlackoilWellModelGeneric<Scalar>::
|
||||
getPrimaryVarsDomain(const int domainIdx) const
|
||||
{
|
||||
std::vector<Scalar> ret;
|
||||
for (const auto& well : this->well_container_generic_) {
|
||||
if (this->well_domain_.at(well->name()) == domainIdx) {
|
||||
const auto& pv = well->getPrimaryVars();
|
||||
ret.insert(ret.end(), pv.begin(), pv.end());
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
template class BlackoilWellModelGeneric<double>;
|
||||
|
||||
#if FLOW_INSTANTIATE_FLOAT
|
||||
|
||||
Reference in new issue
Block a user