BdaBridge and WellContributions are only included and compiled when CUDA is found

This commit is contained in:
T.D. (Tongdong) Qiu
2020-03-18 17:48:28 +01:00
parent d29b6a6e5e
commit fdcf46792a
11 changed files with 30 additions and 47 deletions

View File

@@ -184,11 +184,13 @@ namespace Opm
/// r = r - C D^-1 Rw
virtual void apply(BVector& r) const override;
#if HAVE_CUDA
/// 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;
#endif
/// using the solution x to recover the solution xw for wells and applying
/// xw to update Well State