34 lduMatrix::preconditioner::
35 addsymMatrixConstructorToTable<FDICPreconditioner>
53 scalar* __restrict__ rDPtr = rD_.begin();
54 scalar* __restrict__ rDuUpperPtr = rDuUpper_.begin();
55 scalar* __restrict__ rDlUpperPtr = rDlUpper_.begin();
57 const label*
const __restrict__ uPtr =
58 solver_.matrix().lduAddr().upperAddr().begin();
59 const label*
const __restrict__ lPtr =
60 solver_.matrix().lduAddr().lowerAddr().begin();
61 const scalar*
const __restrict__ upperPtr =
62 solver_.matrix().upper().begin();
64 label nCells = rD_.size();
65 label nFaces = solver_.matrix().upper().size();
69 rDPtr[uPtr[
face]] -=
sqr(upperPtr[
face])/rDPtr[lPtr[face]];
95 scalar* __restrict__ wAPtr = wA.
begin();
96 const scalar* __restrict__ rAPtr = rA.
begin();
97 const scalar* __restrict__ rDPtr = rD_.begin();
99 const label*
const __restrict__ uPtr =
100 solver_.matrix().lduAddr().upperAddr().begin();
101 const label*
const __restrict__ lPtr =
102 solver_.matrix().lduAddr().lowerAddr().begin();
104 const scalar*
const __restrict__ rDuUpperPtr = rDuUpper_.begin();
105 const scalar*
const __restrict__ rDlUpperPtr = rDlUpper_.begin();
108 label nFaces = solver_.matrix().upper().size();
109 label nFacesM1 = nFaces - 1;
118 wAPtr[uPtr[
face]] -= rDuUpperPtr[
face]*wAPtr[lPtr[
face]];
123 wAPtr[lPtr[
face]] -= rDlUpperPtr[
face]*wAPtr[uPtr[
face]];
A face is a list of labels corresponding to mesh vertices.
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensionedSymmTensor sqr(const dimensionedVector &dv)
void size(const label)
Override size to be inconsistent with allocated storage.
const lduMatrix & matrix() const
FDICPreconditioner(const lduMatrix::solver &, const dictionary &solverControlsUnused)
Construct from matrix components and preconditioner solver controls.
Abstract base-class for lduMatrix solvers.
iterator begin()
Return an iterator to begin traversing the UList.
virtual void precondition(scalarField &wA, const scalarField &rA, const direction cmpt=0) const
Return wA the preconditioned form of residual rA.
defineTypeNameAndDebug(combustionModel, 0)
Abstract base-class for lduMatrix preconditioners.
A cell is defined as a list of faces with extra functionality.
lduMatrix::preconditioner::addsymMatrixConstructorToTable< FDICPreconditioner > addFDICPreconditionerSymMatrixConstructorToTable_