16 #ifndef jacobi_preconditioner_h
17 #define jacobi_preconditioner_h
21 #ifdef DEAL_II_WITH_TRILINOS
37 :
public dealii::ParameterAcceptor,
38 public dealii::TrilinosWrappers::PreconditionJacobi
45 const double &
omega = 1,
52 template <
typename Matrix>
56 using dealii::TrilinosWrappers::PreconditionJacobi::initialize;
A parsed Jacobi preconditioner which uses parameter files to choose between different options.
JacobiPreconditioner(const std::string &name="", const double &omega=1, const double &min_diagonal=0, const unsigned int &n_sweeps=1)
Constructor.
double min_diagonal
This specifies the minimum value the diagonal elements should have.
double omega
This specifies the relaxation parameter in the Jacobi preconditioner.
void initialize_preconditioner(const Matrix &matrix)
Initialize the preconditioner using matrix.
unsigned int n_sweeps
Sets how many times the given operation should be applied during the vmult() operation.
void add_parameters()
Declare preconditioner options.