Go to the documentation of this file.
38 lduMatrix::preconditioner::
39 addsymMatrixConstructorToTable<DICPreconditioner>
56 std::copy(
diag.begin(),
diag.end(), rD_.begin());
58 calcReciprocalD(rD_, sol.
matrix());
70 solveScalar* __restrict__ rDPtr = rD.begin();
74 const scalar*
const __restrict__ upperPtr = matrix.
upper().begin();
77 const label nFaces = matrix.
upper().size();
85 const label nCells = rD.size();
101 solveScalar* __restrict__ wAPtr = wA.begin();
102 const solveScalar* __restrict__ rAPtr = rA.begin();
103 const solveScalar* __restrict__ rDPtr = rD_.begin();
105 const label*
const __restrict__ uPtr =
106 solver_.matrix().lduAddr().upperAddr().begin();
107 const label*
const __restrict__ lPtr =
108 solver_.matrix().lduAddr().lowerAddr().begin();
109 const scalar*
const __restrict__ upperPtr =
110 solver_.matrix().upper().begin();
112 const label nCells = wA.size();
113 const label nFaces = solver_.matrix().upper().size();
114 const label nFacesM1 = nFaces - 1;
const lduAddressing & lduAddr() const
Return the LDU addressing.
void diag(pointPatchField< vector > &, const pointPatchField< tensor > &)
virtual void precondition(solveScalarField &wA, const solveScalarField &rA, const direction cmpt=0) const
Return wA the preconditioned form of residual rA.
static void calcReciprocalD(solveScalarField &, const lduMatrix &)
Calculate the reciprocal of the preconditioned diagonal.
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.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
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.