]> https://gitweb.dealii.org/ - dealii.git/commitdiff
remove warnings in trilinos_precondition*cc 1552/head
authorTimo Heister <timo.heister@gmail.com>
Tue, 8 Sep 2015 12:20:13 +0000 (08:20 -0400)
committerTimo Heister <timo.heister@gmail.com>
Tue, 8 Sep 2015 12:20:13 +0000 (08:20 -0400)
source/lac/trilinos_precondition.cc
source/lac/trilinos_precondition_muelu.cc

index 9c644c439ac45e1e28e7a5c4e820ba246f5e1e59..09457ef9ab3e8f39d12135f19fa7369049e2ccfd 100644 (file)
@@ -33,40 +33,6 @@ DEAL_II_NAMESPACE_OPEN
 
 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
index d23be4a75bf07e48a211bf938439b021301a0d02..61288362c27bce1a4bb466a560aaf5ef4cfc4107 100644 (file)
@@ -15,7 +15,7 @@
 
 #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>
@@ -28,11 +28,9 @@ DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #  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
@@ -76,11 +74,6 @@ namespace TrilinosWrappers
 
 
 
-
-
-#if DEAL_II_TRILINOS_VERSION_GTE(11,14,0)
-  /* -------------------------- PreconditionAMGMueLu --------------------- */
-
   PreconditionAMGMueLu::AdditionalData::
   AdditionalData (const bool                             elliptic,
                   const unsigned int                     n_cycles,
@@ -327,9 +320,6 @@ namespace TrilinosWrappers
   template void PreconditionAMGMueLu::initialize (const ::dealii::SparseMatrix<float> &,
                                                   const AdditionalData &, const double,
                                                   const ::dealii::SparsityPattern *);
-#endif
-
-
 
 }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.