41 #ifndef DiagonalPreconditioner_H 42 #define DiagonalPreconditioner_H 55 template<
class Type,
class DType,
class LUType>
58 public LduMatrix<Type, DType, LUType>::preconditioner
virtual ~DiagonalPreconditioner()=default
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual void precondition(Field< Type > &wA, const Field< Type > &rA) const
Return wA the preconditioned form of residual rA.
virtual void preconditionT(Field< Type > &wT, const Field< Type > &rT) const
Return wT the transpose-matrix preconditioned form of.
Diagonal preconditioner for both symmetric and asymmetric matrices.
TypeName("diagonal")
Runtime type information.
Abstract base-class for LduMatrix solvers.
LduMatrix is a general matrix class in which the coefficients are stored as three arrays...
virtual void read(const dictionary &preconditionerDict)
Read and reset the preconditioner parameters from the given.