36 lduMatrix::preconditioner::
37 addsymMatrixConstructorToTable<diagonalPreconditioner>
40 lduMatrix::preconditioner::
41 addasymMatrixConstructorToTable<diagonalPreconditioner>
55 rD(sol.matrix().
diag().size())
57 solveScalar* __restrict__ rDPtr = rD.
begin();
60 const label nCells = rD.
size();
79 solveScalar* __restrict__ wAPtr = wA.
begin();
80 const solveScalar* __restrict__ rAPtr = rA.
begin();
81 const solveScalar* __restrict__ rDPtr = rD.begin();
83 const label nCells = wA.
size();
iterator begin() noexcept
Return an iterator to begin traversing the UList.
void size(const label n)
Older name for setAddressableSize.
A cell is defined as a list of faces with extra functionality.
Diagonal preconditioner for both symmetric and asymmetric matrices.
virtual void precondition(solveScalarField &wA, const solveScalarField &rA, const direction cmpt=0) const
Return wA the preconditioned form of residual rA.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const solver & solver_
Reference to the base-solver this preconditioner is used with.
Abstract base-class for lduMatrix solvers.
const lduMatrix & matrix() const noexcept
lduMatrix is a general matrix class in which the coefficients are stored as three arrays,...
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
lduMatrix::preconditioner::addasymMatrixConstructorToTable< diagonalPreconditioner > adddiagonalPreconditionerAsymMatrixConstructorToTable_
lduMatrix::preconditioner::addsymMatrixConstructorToTable< diagonalPreconditioner > adddiagonalPreconditionerSymMatrixConstructorToTable_
void diag(pointPatchField< vector > &, const pointPatchField< tensor > &)