38 #ifndef DiagonalPreconditioner_H 39 #define DiagonalPreconditioner_H 52 template<
class Type,
class DType,
class LUType>
55 public LduMatrix<Type, DType, LUType>::preconditioner
A list of keyword definitions, which are a keyword followed by any number of values (e...
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.
void operator=(const DiagonalPreconditioner &)=delete
Disallow default bitwise assignment.
LduMatrix is a general matrix class in which the coefficients are stored as three arrays...
virtual ~DiagonalPreconditioner()
DiagonalPreconditioner(const typename LduMatrix< Type, DType, LUType >::solver &sol, const dictionary &preconditionerDict)
Construct from matrix components and preconditioner data dictionary.
virtual void read(const dictionary &preconditionerDict)
Read and reset the preconditioner parameters from the given.