mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
BlackoilWellModel: move numLocalWellsEnd to generic class
This commit is contained in:
parent
dd9a2835fe
commit
aaa1006e2b
@ -325,8 +325,6 @@ namespace Opm {
|
||||
|
||||
using PressureMatrix = Dune::BCRSMatrix<Opm::MatrixBlock<double, 1, 1>>;
|
||||
|
||||
int numLocalWellsEnd() const;
|
||||
|
||||
void addWellPressureEquations(PressureMatrix& jacobian, const BVector& weights,const bool use_well_weights) const;
|
||||
|
||||
void addWellPressureEquationsStruct(PressureMatrix& jacobian) const;
|
||||
|
@ -1393,4 +1393,11 @@ getMaxWellConnections() const
|
||||
return wells;
|
||||
}
|
||||
|
||||
int BlackoilWellModelGeneric::numLocalWellsEnd() const
|
||||
{
|
||||
auto w = schedule().getWellsatEnd();
|
||||
w.erase(std::remove_if(w.begin(), w.end(), not_on_process_), w.end());
|
||||
return w.size();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -86,6 +86,7 @@ public:
|
||||
virtual ~BlackoilWellModelGeneric() = default;
|
||||
|
||||
int numLocalWells() const;
|
||||
int numLocalWellsEnd() const;
|
||||
int numPhases() const;
|
||||
|
||||
/// return true if wells are available in the reservoir
|
||||
|
@ -1462,16 +1462,6 @@ namespace Opm {
|
||||
}
|
||||
|
||||
|
||||
template<typename TypeTag>
|
||||
int
|
||||
BlackoilWellModel<TypeTag>::
|
||||
numLocalWellsEnd() const
|
||||
{
|
||||
auto w = schedule().getWellsatEnd();
|
||||
w.erase(std::remove_if(w.begin(), w.end(), not_on_process_), w.end());
|
||||
return w.size();
|
||||
}
|
||||
|
||||
template<typename TypeTag>
|
||||
void
|
||||
BlackoilWellModel<TypeTag>::
|
||||
|
Loading…
Reference in New Issue
Block a user