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:
@@ -325,8 +325,6 @@ namespace Opm {
|
|||||||
|
|
||||||
using PressureMatrix = Dune::BCRSMatrix<Opm::MatrixBlock<double, 1, 1>>;
|
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 addWellPressureEquations(PressureMatrix& jacobian, const BVector& weights,const bool use_well_weights) const;
|
||||||
|
|
||||||
void addWellPressureEquationsStruct(PressureMatrix& jacobian) const;
|
void addWellPressureEquationsStruct(PressureMatrix& jacobian) const;
|
||||||
|
|||||||
@@ -1393,4 +1393,11 @@ getMaxWellConnections() const
|
|||||||
return wells;
|
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;
|
virtual ~BlackoilWellModelGeneric() = default;
|
||||||
|
|
||||||
int numLocalWells() const;
|
int numLocalWells() const;
|
||||||
|
int numLocalWellsEnd() const;
|
||||||
int numPhases() const;
|
int numPhases() const;
|
||||||
|
|
||||||
/// return true if wells are available in the reservoir
|
/// 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>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
BlackoilWellModel<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
|
|||||||
Reference in New Issue
Block a user