43 #ifndef IFPACK2_OVERLAPPINGPARTITIONER_DECL_HPP
44 #define IFPACK2_OVERLAPPINGPARTITIONER_DECL_HPP
46 #include "Ifpack2_ConfigDefs.hpp"
47 #include "Ifpack2_Partitioner.hpp"
48 #include "Tpetra_RowGraph.hpp"
77 template<
class GraphType>
78 class OverlappingPartitioner :
public Partitioner<GraphType> {
81 typedef typename GraphType::local_ordinal_type LocalOrdinal;
82 typedef typename GraphType::global_ordinal_type GlobalOrdinal;
83 typedef typename GraphType::node_type Node;
86 OverlappingPartitioner(
const Teuchos::RCP<
const Tpetra::RowGraph<LocalOrdinal,GlobalOrdinal,Node> >& Graph);
89 virtual ~OverlappingPartitioner();
92 LocalOrdinal numLocalParts()
const;
95 size_t overlappingLevel()
const;
105 LocalOrdinal operator() (LocalOrdinal MyRow)
const;
108 LocalOrdinal operator() (LocalOrdinal i, LocalOrdinal j)
const;
111 size_t numRowsInPart(
const LocalOrdinal Part)
const;
135 virtual void compute();
138 virtual void computePartitions() = 0;
141 virtual void computeOverlappingPartitions();
144 virtual bool isComputed()
const;
147 virtual std::ostream& print(std::ostream& os)
const;
154 std::string description()
const;
164 LocalOrdinal NumLocalParts_;
173 size_t OverlappingLevel_;
183 #endif // IFPACK2_OVERLAPPINGPARTITIONER_DECL_HPP
static const EVerbosityLevel verbLevel_default
void describe(std::ostream &out, const EVerbosityLevel verbLevel=verbLevel_default) const