Classes | |
struct | AdditionalData |
Public Member Functions | |
void | initialize (const SparseMatrix &matrix, const AdditionalData &additional_data=AdditionalData()) |
Private Attributes | |
Teuchos::RCP < Ifpack_Preconditioner > | ifpack |
A wrapper class for a (pointwise) Jacobi preconditioner for Trilinos matrices. This preconditioner works both in serial and in parallel, depending on the matrix it is based on.
The AdditionalData data structure allows to set preconditioner options. For the Jacobi preconditioner, these options are the damping parameter omega
and a min_diagonal
argument that can be used to make the preconditioner work even if the matrix contains some zero elements on the diagonal. The default settings are 1 for the damping parameter and zero for the diagonal augmentation.
void TrilinosWrappers::PreconditionJacobi::initialize | ( | const SparseMatrix & | matrix, | |
const AdditionalData & | additional_data = AdditionalData() | |||
) |
Take the sparse matrix the preconditioner object should be built of, and additional flags (damping parameter, etc.) if there are any.
Teuchos::RCP<Ifpack_Preconditioner> TrilinosWrappers::PreconditionJacobi::ifpack [private] |
This is a pointer to the Ifpack data contained in this preconditioner.