
Classes | |
| class | AdditionalData |
Public Member Functions | |
| PreconditionRichardson () | |
| void | initialize (const AdditionalData ¶meters) |
| template<class MATRIX > | |
| void | initialize (const MATRIX &, const AdditionalData ¶meters) |
| template<class VECTOR > | |
| void | vmult (VECTOR &, const VECTOR &) const |
| template<class VECTOR > | |
| void | Tvmult (VECTOR &, const VECTOR &) const |
| template<class VECTOR > | |
| void | vmult_add (VECTOR &, const VECTOR &) const |
| template<class VECTOR > | |
| void | Tvmult_add (VECTOR &, const VECTOR &) const |
| void | clear () |
Private Attributes | |
| double | relaxation |
Preconditioning with Richardson's method. This preconditioner just scales the vector with a constant relaxation factor provided by the AdditionalData object.
In Krylov-space methods, this preconditioner should not have any effect. Using SolverRichardson, the two relaxation parameters will be just multiplied. Still, this class is useful in multigrid smoother objects (MGSmootherRelaxation).
| PreconditionRichardson::PreconditionRichardson | ( | ) |
Constructor, sets the relaxation parameter to its default.
| void PreconditionRichardson::initialize | ( | const AdditionalData & | parameters | ) |
Change the relaxaton parameter.
| void PreconditionRichardson::initialize | ( | const MATRIX & | , |
| const AdditionalData & | parameters | ||
| ) |
Change the relaxaton parameter in a way consistent with other preconditioners. The matrix argument is ignored and here just for compatibility with more complex preconditioners.
| void PreconditionRichardson::vmult | ( | VECTOR & | , |
| const VECTOR & | |||
| ) | const |
Apply preconditioner.
| void PreconditionRichardson::Tvmult | ( | VECTOR & | , |
| const VECTOR & | |||
| ) | const |
Apply transpose preconditioner. Since this is the identity, this function is the same as vmult().
| void PreconditionRichardson::vmult_add | ( | VECTOR & | , |
| const VECTOR & | |||
| ) | const |
Apply preconditioner, adding to the previous value.
| void PreconditionRichardson::Tvmult_add | ( | VECTOR & | , |
| const VECTOR & | |||
| ) | const |
Apply transpose preconditioner, adding. Since this is the identity, this function is the same as vmult_add().
| void PreconditionRichardson::clear | ( | ) | [inline] |
This function is only present to provide the interface of a precondtioner to be handed to a smoother. This does nothing.
double PreconditionRichardson::relaxation [private] |
The relaxation parameter multiplied with the vectors.
documentation generated on Fri Aug 12 2011 15:01:06 by
doxygen
1.7.4