41#ifndef DiagonalPreconditioner_H
42#define DiagonalPreconditioner_H
55template<
class Type,
class DType,
class LUType>
56class DiagonalPreconditioner
69 DiagonalPreconditioner(
const DiagonalPreconditioner&) =
delete;
72 void operator=(
const DiagonalPreconditioner&) =
delete;
84 DiagonalPreconditioner
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 that is much like a Foam::List except that it is expected to hold numeri...
preconditioner(const solver &sol)
Construct for given solver.
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.