[cleanup][Wells] Consequently use SparseMatrixAdapter in addWellContributions.

This commit is contained in:
Robert Kloefkorn
2019-10-02 12:48:29 +02:00
parent 28cf1c17be
commit f708286111
8 changed files with 60 additions and 59 deletions

View File

@@ -88,7 +88,6 @@ namespace Opm
typedef Dune::FieldVector<Scalar, numEq > VectorBlockType;
typedef Dune::FieldMatrix<Scalar, numEq, numEq > MatrixBlockType;
typedef typename SparseMatrixAdapter::IstlMatrix Mat;
typedef Dune::BlockVector<VectorBlockType> BVector;
typedef DenseAd::Evaluation<double, /*size=*/numEq> Eval;
@@ -206,7 +205,7 @@ namespace Opm
void calculateReservoirRates(WellState& well_state) const;
// Add well contributions to matrix
virtual void addWellContributions(Mat&) const = 0;
virtual void addWellContributions(SparseMatrixAdapter&) const = 0;
void addCellRates(RateVector& rates, int cellIdx) const;