mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
remove now unnecessary Bhp_ member in StandardWellGeneric
This commit is contained in:
parent
5d4c7f49a2
commit
f06264152c
@ -48,7 +48,7 @@ namespace Opm
|
||||
template<class FluidSystem, class Indices, class Scalar>
|
||||
StandardWellEval<FluidSystem,Indices,Scalar>::
|
||||
StandardWellEval(const WellInterfaceIndices<FluidSystem,Indices,Scalar>& baseif)
|
||||
: StandardWellGeneric<Scalar>(Bhp, baseif)
|
||||
: StandardWellGeneric<Scalar>(baseif)
|
||||
, baseif_(baseif)
|
||||
, F0_(numWellConservationEq)
|
||||
{
|
||||
|
@ -47,13 +47,11 @@ namespace Opm
|
||||
|
||||
template<class Scalar>
|
||||
StandardWellGeneric<Scalar>::
|
||||
StandardWellGeneric(int Bhp,
|
||||
const WellInterfaceGeneric& baseif)
|
||||
StandardWellGeneric(const WellInterfaceGeneric& baseif)
|
||||
: baseif_(baseif)
|
||||
, perf_densities_(baseif_.numPerfs())
|
||||
, perf_pressure_diffs_(baseif_.numPerfs())
|
||||
, parallelB_(duneB_, baseif_.parallelWellInfo())
|
||||
, Bhp_(Bhp)
|
||||
{
|
||||
duneB_.setBuildMode(OffDiagMatWell::row_wise);
|
||||
duneC_.setBuildMode(OffDiagMatWell::row_wise);
|
||||
|
@ -69,8 +69,7 @@ public:
|
||||
void getNumBlocks(unsigned int& _nnzs) const;
|
||||
|
||||
protected:
|
||||
StandardWellGeneric(int Bhp,
|
||||
const WellInterfaceGeneric& baseif);
|
||||
StandardWellGeneric(const WellInterfaceGeneric& baseif);
|
||||
|
||||
// calculate a relaxation factor to avoid overshoot of total rates
|
||||
static double relaxationFactorRate(const std::vector<double>& primary_variables,
|
||||
@ -122,9 +121,6 @@ protected:
|
||||
mutable BVectorWell invDrw_;
|
||||
|
||||
double getRho() const { return perf_densities_[0]; }
|
||||
|
||||
private:
|
||||
int Bhp_; // index of Bhp
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user