BlackoilWellModel: move numLocalNonshutWells to generic class

This commit is contained in:
Arne Morten Kvarving 2023-05-22 10:01:33 +02:00
parent aaa1006e2b
commit e7738e70dc
4 changed files with 6 additions and 11 deletions

View File

@ -337,8 +337,6 @@ namespace Opm {
return well_container_;
}
int numLocalNonshutWells() const;
// prototype for assemble function for ASPIN solveLocal()
// will try to merge back to assemble() when done prototyping
void assembleDomain(const int iterationIdx,

View File

@ -1400,4 +1400,9 @@ int BlackoilWellModelGeneric::numLocalWellsEnd() const
return w.size();
}
int BlackoilWellModelGeneric::numLocalNonshutWells() const
{
return well_container_generic_.size();
}
}

View File

@ -87,6 +87,7 @@ public:
int numLocalWells() const;
int numLocalWellsEnd() const;
int numLocalNonshutWells() const;
int numPhases() const;
/// return true if wells are available in the reservoir

View File

@ -1485,15 +1485,6 @@ namespace Opm {
}
template<typename TypeTag>
int
BlackoilWellModel<TypeTag>::
numLocalNonshutWells() const
{
return well_container_.size();
}
template<typename TypeTag>
void
BlackoilWellModel<TypeTag>::