// ---------------------------------------------------------------------
#ifndef dealii_trilinos_sparsity_pattern_h
-# define dealii_trilinos_sparsity_pattern_h
+#define dealii_trilinos_sparsity_pattern_h
+#include <deal.II/base/config.h>
-# include <deal.II/base/config.h>
+#ifdef DEAL_II_WITH_TRILINOS
-# ifdef DEAL_II_WITH_TRILINOS
+# include <deal.II/base/index_set.h>
+# include <deal.II/base/mpi_stub.h>
+# include <deal.II/base/subscriptor.h>
-# include <deal.II/base/index_set.h>
-# include <deal.II/base/mpi_stub.h>
-# include <deal.II/base/subscriptor.h>
+# include <deal.II/lac/exceptions.h>
+# include <deal.II/lac/sparsity_pattern_base.h>
-# include <deal.II/lac/exceptions.h>
+# include <Epetra_FECrsGraph.h>
+# include <Epetra_Map.h>
+# include <Epetra_MpiComm.h>
-# include <Epetra_FECrsGraph.h>
-# include <Epetra_Map.h>
-# include <Epetra_MpiComm.h>
-
-# include <cmath>
-# include <memory>
-# include <vector>
+# include <cmath>
+# include <memory>
+# include <vector>
DEAL_II_NAMESPACE_OPEN
// forward declarations
-# ifndef DOXYGEN
+# ifndef DOXYGEN
class SparsityPattern;
class DynamicSparsityPattern;
class Iterator;
}
} // namespace TrilinosWrappers
-# endif
+# endif
namespace TrilinosWrappers
{
// ----------------------- inline and template functions --------------------
-# ifndef DOXYGEN
+# ifndef DOXYGEN
namespace SparsityPatternIterators
{
SparsityPattern::in_local_range(const size_type index) const
{
TrilinosWrappers::types::int_type begin, end;
-# ifndef DEAL_II_WITH_64BIT_INDICES
+# ifndef DEAL_II_WITH_64BIT_INDICES
begin = graph->RowMap().MinMyGID();
end = graph->RowMap().MaxMyGID() + 1;
-# else
+# else
begin = graph->RowMap().MinMyGID64();
end = graph->RowMap().MaxMyGID64() + 1;
-# endif
+# endif
return ((index >= static_cast<size_type>(begin)) &&
(index < static_cast<size_type>(end)));
return IndexSet(graph->RangeMap());
}
-# endif // DOXYGEN
+# endif // DOXYGEN
} // namespace TrilinosWrappers
DEAL_II_NAMESPACE_CLOSE
-# endif // DEAL_II_WITH_TRILINOS
-
-
-/*-------------------- trilinos_sparsity_pattern.h --------------------*/
+#endif // DEAL_II_WITH_TRILINOS
#endif
-/*-------------------- trilinos_sparsity_pattern.h --------------------*/