10 #ifndef IFPACK2_PARTITIONER_HPP
11 #define IFPACK2_PARTITIONER_HPP
13 #include "Ifpack2_ConfigDefs.hpp"
15 #include "Teuchos_ArrayRCP.hpp"
145 template <
class GraphType>
148 typedef typename GraphType::local_ordinal_type LocalOrdinal;
149 typedef typename GraphType::global_ordinal_type GlobalOrdinal;
150 typedef typename GraphType::node_type Node;
168 virtual LocalOrdinal
operator() (LocalOrdinal MyRow)
const = 0;
171 virtual LocalOrdinal
operator() (LocalOrdinal i, LocalOrdinal j)
const = 0;
174 virtual size_t numRowsInPart (
const LocalOrdinal Part)
const = 0;
195 virtual std::ostream&
print (std::ostream& os)
const = 0;
200 template <
class GraphType>
202 operator<< (std::ostream& os,
205 return obj.
print (os);
210 #endif // IFPACK2_PARTITIONER_HPP
virtual void rowsInPart(const LocalOrdinal Part, Teuchos::ArrayRCP< LocalOrdinal > &List) const =0
Copy into List the rows in the (overlapping) partition Part.
virtual std::ostream & print(std::ostream &os) const =0
Print basic information about the partitioning object.
virtual ~Partitioner()
Destructor.
Definition: Ifpack2_Partitioner.hpp:153
virtual bool isComputed() const =0
Return true if partitions have been computed successfully.
Ifpack2::Partitioner:
Definition: Ifpack2_Partitioner.hpp:146
virtual int numLocalParts() const =0
Number of computed local partitions.
virtual LocalOrdinal operator()(LocalOrdinal MyRow) const =0
The local (nonoverlapping) partition index of the specified local row.
virtual int overlappingLevel() const =0
The level of overlap.
virtual size_t numRowsInPart(const LocalOrdinal Part) const =0
The number of rows contained in the specified partition.
virtual void compute()=0
Compute the partitions.
virtual Teuchos::ArrayView< const LocalOrdinal > nonOverlappingPartition() const =0
The nonoverlapping partition indices of each local row.
virtual void setParameters(Teuchos::ParameterList &List)=0
Set all the parameters for the partitioner.