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