mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user