15#ifndef dealii_trilinos_precondition_h
16#define dealii_trilinos_precondition_h
21#ifdef DEAL_II_WITH_TRILINOS
28# include <Epetra_Map.h>
29# include <Epetra_MpiComm.h>
30# include <Epetra_MultiVector.h>
31# include <Epetra_RowMatrix.h>
32# include <Epetra_Vector.h>
33# include <Teuchos_ParameterList.hpp>
39class Ifpack_Preconditioner;
40class Ifpack_Chebyshev;
43 class MultiLevelPreconditioner;
51template <
typename number>
53template <
typename number>
148 const ::Vector<double> &src)
const;
156 const ::LinearAlgebra::distributed::Vector<double> &src)
const;
164 const ::LinearAlgebra::distributed::Vector<double> &src)
const;
210 <<
"The sparse matrix the preconditioner is based on "
211 <<
"uses a map that is not compatible to the one in vector "
212 << arg1 <<
". Check preconditioner and matrix setup.");
354 const unsigned int overlap = 0,
448 const unsigned int overlap = 0,
534 const double omega = 1,
637 const double omega = 1,
639 const unsigned int overlap = 0,
748 const double omega = 1,
750 const unsigned int overlap = 0,
874 const unsigned int overlap = 0);
993 const unsigned int overlap = 0);
1099 const unsigned int overlap = 0);
1360 std::vector<std::vector<bool>>(0),
1399 Teuchos::ParameterList ¶meter_list,
1400 std::unique_ptr<Epetra_MultiVector> &distributed_constant_modes,
1401 const Epetra_RowMatrix &matrix)
const;
1412 Teuchos::ParameterList ¶meter_list,
1413 std::unique_ptr<Epetra_MultiVector> &distributed_constant_modes,
1423 Teuchos::ParameterList ¶meter_list,
1424 std::unique_ptr<Epetra_MultiVector> &distributed_constant_modes,
1425 const Epetra_RowMatrix &matrix)
const;
1434 Teuchos::ParameterList ¶meter_list,
1435 std::unique_ptr<Epetra_MultiVector> &distributed_constant_modes,
1632 const Teuchos::ParameterList &ml_parameters);
1643 const Teuchos::ParameterList &ml_parameters);
1651 template <
typename number>
1653 initialize(const ::SparseMatrix<number> &deal_ii_sparse_matrix,
1655 const double drop_tolerance = 1e-13,
1656 const ::SparsityPattern *use_this_sparsity =
nullptr);
1695# if defined(DOXYGEN) || defined(DEAL_II_TRILINOS_WITH_MUELU)
1734 std::vector<std::vector<bool>>(0),
1893 Teuchos::ParameterList &muelu_parameters);
1902 Teuchos::ParameterList &muelu_parameters);
1910 template <
typename number>
1912 initialize(const ::SparseMatrix<number> &deal_ii_sparse_matrix,
1914 const double drop_tolerance = 1e-13,
1915 const ::SparsityPattern *use_this_sparsity =
nullptr);
1984 const ::Vector<double> &src)
const override;
1992 const ::Vector<double> &src)
const override;
2000 const ::LinearAlgebra::distributed::Vector<double> &src)
2010 const ::LinearAlgebra::distributed::Vector<double> &src)
2048 Assert(dst.trilinos_partitioner().SameAs(
2051 Assert(src.trilinos_partitioner().SameAs(
2055 const int ierr =
preconditioner->ApplyInverse(src.trilinos_vector(),
2056 dst.trilinos_vector());
2063 Assert(dst.trilinos_partitioner().SameAs(
2066 Assert(src.trilinos_partitioner().SameAs(
2071 const int ierr =
preconditioner->ApplyInverse(src.trilinos_vector(),
2072 dst.trilinos_vector());
2089 const ::Vector<double> &src)
const
2095 Epetra_Vector tril_dst(View,
2098 Epetra_Vector tril_src(View,
2100 const_cast<double *
>(src.begin()));
2102 const int ierr =
preconditioner->ApplyInverse(tril_src, tril_dst);
2109 const ::Vector<double> &src)
const
2115 Epetra_Vector tril_dst(View,
2118 Epetra_Vector tril_src(View,
2120 const_cast<double *
>(src.begin()));
2123 const int ierr =
preconditioner->ApplyInverse(tril_src, tril_dst);
2139 Epetra_Vector tril_dst(View,
2142 Epetra_Vector tril_src(View,
2144 const_cast<double *
>(src.
begin()));
2146 const int ierr =
preconditioner->ApplyInverse(tril_src, tril_dst);
2159 Epetra_Vector tril_dst(View,
2162 Epetra_Vector tril_src(View,
2164 const_cast<double *
>(src.
begin()));
2167 const int ierr =
preconditioner->ApplyInverse(tril_src, tril_dst);
size_type locally_owned_size() const
std::shared_ptr< SparseMatrix > trilinos_matrix
size_type memory_consumption() const
virtual ~PreconditionAMGMueLu() override=default
void initialize(const SparseMatrix &matrix, const AdditionalData &additional_data=AdditionalData())
~PreconditionAMG() override
std::shared_ptr< SparseMatrix > trilinos_matrix
size_type memory_consumption() const
void initialize(const SparseMatrix &matrix, const AdditionalData &additional_data=AdditionalData())
IndexSet locally_owned_range_indices() const
Epetra_MpiComm communicator
virtual void Tvmult(::LinearAlgebra::distributed::Vector< double > &dst, const ::LinearAlgebra::distributed::Vector< double > &src) const
virtual void Tvmult(MPI::Vector &dst, const MPI::Vector &src) const
virtual void vmult(MPI::Vector &dst, const MPI::Vector &src) const
Epetra_Operator & trilinos_operator() const
Teuchos::RCP< Epetra_Operator > preconditioner
virtual void Tvmult(::Vector< double > &dst, const ::Vector< double > &src) const
MPI_Comm get_mpi_communicator() const
virtual void vmult(::Vector< double > &dst, const ::Vector< double > &src) const
IndexSet locally_owned_domain_indices() const
virtual void vmult(::LinearAlgebra::distributed::Vector< double > &dst, const ::LinearAlgebra::distributed::Vector< double > &src) const
void initialize(const SparseMatrix &matrix, const AdditionalData &additional_data=AdditionalData())
void initialize(const SparseMatrix &matrix, const AdditionalData &additional_data=AdditionalData())
void initialize(const SparseMatrix &matrix, const AdditionalData &additional_data=AdditionalData())
void initialize(const SparseMatrix &matrix, const AdditionalData &additional_data=AdditionalData())
void initialize(const SparseMatrix &matrix, const AdditionalData &additional_data=AdditionalData())
void initialize(const SparseMatrix &matrix, const AdditionalData &additional_data=AdditionalData())
void initialize(const SparseMatrix &matrix, const AdditionalData &additional_data=AdditionalData())
void initialize(const SparseMatrix &matrix, const AdditionalData &additional_data=AdditionalData())
void vmult(LinearAlgebra::distributed::Vector< double > &dst, const ::LinearAlgebra::distributed::Vector< double > &src) const override
void vmult(MPI::Vector &dst, const MPI::Vector &src) const override
void Tvmult(MPI::Vector &dst, const MPI::Vector &src) const override
void Tvmult(LinearAlgebra::distributed::Vector< double > &dst, const ::LinearAlgebra::distributed::Vector< double > &src) const override
void initialize(const SparseMatrix &matrix, const AdditionalData &additional_data=AdditionalData())
void initialize(const SparseMatrix &matrix, const AdditionalData &additional_data=AdditionalData())
void initialize(const SparseMatrix &matrix, const AdditionalData &additional_data=AdditionalData())
void initialize(const SparseMatrix &matrix, const AdditionalData &additional_data=AdditionalData())
virtual size_type size() const override
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcNonMatchingMaps(std::string arg1)
#define Assert(cond, exc)
#define AssertDimension(dim1, dim2)
#define DeclException1(Exception1, type1, outsequence)
static ::ExceptionBase & ExcTrilinosError(int arg1)
#define AssertThrow(cond, exc)
unsigned int global_dof_index
double aggregation_threshold
std::vector< std::vector< bool > > constant_modes
unsigned int smoother_sweeps
unsigned int smoother_overlap
const char * smoother_type
std::vector< std::vector< bool > > constant_modes
double aggregation_threshold
std::vector< std::vector< double > > constant_modes_values
unsigned int smoother_sweeps
bool higher_order_elements
unsigned int smoother_overlap
void set_operator_null_space(Teuchos::ParameterList ¶meter_list, std::unique_ptr< Epetra_MultiVector > &distributed_constant_modes, const Epetra_RowMatrix &matrix) const
const char * smoother_type
void set_parameters(Teuchos::ParameterList ¶meter_list, std::unique_ptr< Epetra_MultiVector > &distributed_constant_modes, const Epetra_RowMatrix &matrix) const
std::string block_creation_type
std::string block_creation_type
std::string block_creation_type