added: StandardWellEquations::getNumBlocks()

this returns the number of blocks in in B/C matrices.
use the new method in the well implementation.
This commit is contained in:
Arne Morten Kvarving
2022-11-11 21:41:24 +01:00
parent f2d8a073f9
commit b24f22312e
4 changed files with 11 additions and 8 deletions

View File

@@ -262,6 +262,13 @@ extract(SparseMatrixAdapter& jacobian) const
}
}
template<class Scalar, int numEq>
unsigned int StandardWellEquations<Scalar,numEq>::
getNumBlocks() const
{
return duneB_.nonzeroes();
}
#define INSTANCE(N) \
template class StandardWellEquations<double,N>; \
template void StandardWellEquations<double,N>::extract(Linear::IstlSparseMatrixAdapter<MatrixBlock<double,N,N>>&) const;