36 lduMatrix::preconditioner::
37 addsymMatrixConstructorToTable<distributedDICPreconditioner>
53 const auto& lduAddr = matrix.
lduAddr();
55 const label*
const __restrict__ uPtr = lduAddr.
upperAddr().
begin();
56 const label*
const __restrict__ lPtr = lduAddr.lowerAddr().begin();
57 const scalar*
const __restrict__ upperPtr = matrix.upper().begin();
59 const label nFaces = matrix.upper().size();
66 if (cellColour[
cell] == colouri)
74 for (label face=0; face<nFaces; face++)
88 const auto& matrix = solver_.matrix();
89 const auto& lduAddr = matrix.lduAddr();
91 solveScalar* __restrict__ wAPtr = wA.begin();
92 const solveScalar* __restrict__ rDPtr = rD_.begin();
94 const label*
const __restrict__ uPtr = lduAddr.upperAddr().begin();
95 const label*
const __restrict__ lPtr = lduAddr.lowerAddr().begin();
96 const scalar*
const __restrict__ upperPtr = matrix.upper().begin();
98 const label nFaces = matrix.upper().size();
101 const auto& cellColour = *cellColourPtr_;
105 if (cellColour[
cell] == colouri)
iterator begin() noexcept
Return an iterator to begin traversing the UList.
A cell is defined as a list of faces with extra functionality.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Version of DICpreconditioner that uses preconditioning across processor (and coupled) boundaries....
distributedDICPreconditioner(const lduMatrix::solver &, const dictionary &solverControlsUnused)
Construct from matrix components and preconditioner solver controls.
virtual void forwardInternalDiag(solveScalarField &rD, const label colouri) const
Update diagonal for colour.
virtual void forwardInternal(solveScalarField &wA, const label colouri) const
Update preconditioned variable walking forward on internal faces.
Version of DILUpreconditioner that uses preconditioning across processor (and coupled) boundaries....
autoPtr< labelList > cellColourPtr_
Local (cell) colouring from global interfaces.
distributedDILUPreconditioner(const lduMatrix::solver &, const dictionary &solverControlsUnused)
Construct from matrix components and preconditioner solver controls.
solveScalarField rD_
The reciprocal preconditioned diagonal.
A face is a list of labels corresponding to mesh vertices.
virtual const labelUList & upperAddr() const =0
Return upper addressing.
const solver & solver_
Reference to the base-solver this preconditioner is used with.
Abstract base-class for lduMatrix solvers.
const lduMatrix & matrix() const noexcept
const lduAddressing & lduAddr() const
Return the LDU addressing.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
lduMatrix::preconditioner::addsymMatrixConstructorToTable< distributedDICPreconditioner > adddistributedDICPreconditionerSymMatrixConstructorToTable_
Field< solveScalar > solveScalarField