Go to the documentation of this file.
34 lduMatrix::preconditioner::
35 addsymMatrixConstructorToTable<DICPreconditioner>
51 calcReciprocalD(rD_, sol.
matrix());
63 scalar* __restrict__ rDPtr = rD.begin();
67 const scalar*
const __restrict__ upperPtr = matrix.
upper().begin();
78 const label nCells = rD.size();
94 scalar* __restrict__ wAPtr = wA.begin();
95 const scalar* __restrict__ rAPtr = rA.begin();
96 const scalar* __restrict__ rDPtr = rD_.begin();
98 const label*
const __restrict__ uPtr =
99 solver_.matrix().lduAddr().upperAddr().begin();
100 const label*
const __restrict__ lPtr =
101 solver_.matrix().lduAddr().lowerAddr().begin();
102 const scalar*
const __restrict__ upperPtr =
103 solver_.matrix().upper().begin();
105 label nCells = wA.size();
106 label nFaces = solver_.matrix().upper().size();
107 label nFacesM1 = nFaces - 1;
const lduAddressing & lduAddr() const
Return the LDU addressing.
virtual void precondition(scalarField &wA, const scalarField &rA, const direction cmpt=0) const
Return wA the preconditioned form of residual rA.
lduMatrix is a general matrix class in which the coefficients are stored as three arrays,...
DICPreconditioner(const lduMatrix::solver &, const dictionary &solverControlsUnused)
Construct from matrix components and preconditioner solver controls.
const lduMatrix & matrix() const
Abstract base-class for lduMatrix solvers.
virtual const labelUList & upperAddr() const =0
Return upper addressing.
iterator begin()
Return an iterator to begin traversing the UList.
static void calcReciprocalD(scalarField &rD, const lduMatrix &matrix)
Calculate the reciprocal of the preconditioned diagonal.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
A list of keyword definitions, which are a keyword followed by any number of values (e....
lduMatrix::preconditioner::addsymMatrixConstructorToTable< DICPreconditioner > addDICPreconditionerSymMatrixConstructorToTable_
virtual const labelUList & lowerAddr() const =0
Return lower addressing.
A face is a list of labels corresponding to mesh vertices.
Abstract base-class for lduMatrix preconditioners.
defineTypeNameAndDebug(combustionModel, 0)
A cell is defined as a list of faces with extra functionality.