41 if (lowerPtr_ || upperPtr_)
45 Type* __restrict__ HpsiPtr = Hpsi.
begin();
47 const Type* __restrict__ psiPtr = psi.
begin();
52 const scalar* __restrict__ lowerPtr =
lower().
begin();
53 const scalar* __restrict__ upperPtr =
upper().
begin();
59 HpsiPtr[uPtr[
face]] -= lowerPtr[
face]*psiPtr[lPtr[
face]];
60 HpsiPtr[lPtr[
face]] -= upperPtr[
face]*psiPtr[uPtr[
face]];
81 if (lowerPtr_ || upperPtr_)
104 <<
"Cannot calculate faceH" 105 " the matrix does not have any off-diagonal coefficients." tmp< Field< Type > > faceH(const Field< Type > &) const
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A face is a list of labels corresponding to mesh vertices.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
T & ref() const
Return non-const reference or generate a fatal error.
void size(const label)
Override size to be inconsistent with allocated storage.
virtual const labelUList & lowerAddr() const =0
Return lower addressing.
Pre-declare SubField and related Field type.
virtual const labelUList & upperAddr() const =0
Return upper addressing.
iterator begin()
Return an iterator to begin traversing the UList.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
lduMatrix is a general matrix class in which the coefficients are stored as three arrays...
const lduAddressing & lduAddr() const
Return the LDU addressing.
const volScalarField & psi
tmp< Field< Type > > H(const Field< Type > &) const
A class for managing temporary objects.
label size() const
Return the number of elements in the UList.