cusparseSolver can now apply wellcontributions separately, so --matrix-add-wellcontributions=true is not required anymore

This commit is contained in:
T.D. (Tongdong) Qiu
2020-03-13 14:21:59 +01:00
parent 5b457cbbd6
commit 581cbc6a3e
12 changed files with 763 additions and 77 deletions

View File

@@ -184,6 +184,12 @@ namespace Opm
/// r = r - C D^-1 Rw
virtual void apply(BVector& r) const override;
/// add the contribution (C, D^-1, B matrices) of this Well to the WellContributions object
void addWellContribution(WellContributions& wellContribs) const;
/// get the sizes of the C, D^-1 and B matrices, used to allocate memory in a WellContributions object
void getWellSizes(unsigned int& _nnzs, unsigned int& _numEq, unsigned int& _numWellEq) const;
/// using the solution x to recover the solution xw for wells and applying
/// xw to update Well State
virtual void recoverWellSolutionAndUpdateWellState(const BVector& x,