namespace TrilinosWrappers
{
- namespace
- {
-#ifndef DEAL_II_WITH_64BIT_INDICES
- int n_global_rows (const Epetra_RowMatrix &matrix)
- {
- return matrix.NumGlobalRows();
- }
-
- int global_length (const Epetra_MultiVector &vector)
- {
- return vector.GlobalLength();
- }
-
- int gid(const Epetra_Map &map, unsigned int i)
- {
- return map.GID(i);
- }
-#else
- long long int n_global_rows (const Epetra_RowMatrix &matrix)
- {
- return matrix.NumGlobalRows64();
- }
-
- long long int global_length (const Epetra_MultiVector &vector)
- {
- return vector.GlobalLength64();
- }
-
- long long int gid(const Epetra_Map &map, dealii::types::global_dof_index i)
- {
- return map.GID64(i);
- }
-#endif
- }
PreconditionBase::PreconditionBase()
#ifdef DEAL_II_WITH_MPI
#include <deal.II/lac/trilinos_precondition.h>
-#ifdef DEAL_II_WITH_TRILINOS
+#if defined(DEAL_II_WITH_TRILINOS) && DEAL_II_TRILINOS_VERSION_GTE(11,14,0)
# include <deal.II/lac/vector.h>
# include <deal.II/lac/sparse_matrix.h>
# include <ml_include.h>
# include <ml_MultiLevelPreconditioner.h>
-#if DEAL_II_TRILINOS_VERSION_GTE(11,14,0)
# include <MueLu.hpp>
# include <MueLu_EpetraOperator.hpp>
# include <MueLu_MLParameterListInterpreter.hpp>
-#endif
DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
DEAL_II_NAMESPACE_OPEN
-
-
-#if DEAL_II_TRILINOS_VERSION_GTE(11,14,0)
- /* -------------------------- PreconditionAMGMueLu --------------------- */
-
PreconditionAMGMueLu::AdditionalData::
AdditionalData (const bool elliptic,
const unsigned int n_cycles,
template void PreconditionAMGMueLu::initialize (const ::dealii::SparseMatrix<float> &,
const AdditionalData &, const double,
const ::dealii::SparsityPattern *);
-#endif
-
-
}