43 #include "Ifpack_ConfigDefs.h"
44 #include "Ifpack_Partitioner.h"
45 #include "Ifpack_OverlappingPartitioner.h"
46 #include "Ifpack_UserPartitioner.h"
47 #include "Epetra_CrsGraph.h"
60 int curr_num_parts = base_num_parts;
71 if(curr_num_parts != base_num_parts) {
88 for (
unsigned int i = 0 ; i < singletons.size() ; ++i) {
100 for (
unsigned int i = 0 ; i < singletons.size() ; ++i) {
101 if (singletons[i] == 1)
106 for (
int i = 0 ; i <
NumMyRows() ; ++i) {
108 if (singletons[j] == 1) {
int NumMyRows() const
Returns the number of local rows.
std::vector< int > Partition_
Partition_[i] contains the ID of non-overlapping part it belongs to.
int ComputePartitions()
Computes the partitions. Returns 0 if successful.
int NumLocalParts_
Number of local subgraphs.
int NumLocalParts() const
Returns the number of computed local partitions.
std::vector< std::vector< int > > Parts_
Parts_[i][j] is the ID of the j-th row contained in the (overlapping)