|
Ifpack2 Templated Preconditioning Package
Version 1.0
|
Ifpack2::Partitioner: A class to decompose local Ifpack2::Graph objects. More...
#include <Ifpack2_Partitioner.hpp>
Inherits Describable.
Inherited by Ifpack2::OverlappingPartitioner< GraphType >.
Public Member Functions | |
| virtual | ~Partitioner () |
| Destructor. More... | |
| virtual LocalOrdinal | numLocalParts () const =0 |
| Returns the number of computed local partitions. More... | |
| virtual size_t | overlappingLevel () const =0 |
| Returns the overlapping level. More... | |
| virtual LocalOrdinal | operator() (LocalOrdinal MyRow) const =0 |
| Returns the local non-overlapping partition ID of the specified row. More... | |
| virtual LocalOrdinal | operator() (LocalOrdinal i, LocalOrdinal j) const =0 |
| Returns the local overlapping partition ID of the j-th node in partition i. More... | |
| virtual size_t | numRowsInPart (const LocalOrdinal Part) const =0 |
| Returns the number of rows contained in specified partition. More... | |
| virtual void | rowsInPart (const LocalOrdinal Part, Teuchos::ArrayRCP< LocalOrdinal > &List) const =0 |
| Copies into List the rows in the (overlapping) partition Part. More... | |
| virtual Teuchos::ArrayView< const LocalOrdinal > | nonOverlappingPartition () const =0 |
| Returns an ArrayRCP to the integer vector containing the non-overlapping partition ID of each local row. More... | |
| virtual void | setParameters (Teuchos::ParameterList &List)=0 |
| Sets all the parameters for the partitioner. More... | |
| virtual void | compute ()=0 |
| Computes the partitions. Returns 0 if successful. More... | |
| virtual bool | isComputed () const =0 |
| Returns true if partitions have been computed successfully. More... | |
| virtual std::ostream & | print (std::ostream &os) const =0 |
| Prints basic information about the partitioning object. More... | |
Ifpack2::Partitioner: A class to decompose local Ifpack2::Graph objects.
Class Ifpack2::Partitioner enables the decomposition of a local Ifpack2::Graph. It is supposed that the graph refers to a localized matrix (that is, a matrix that has been filtered through Ifpack2::LocalFilter).
The overloaded operator (int i) can be used to extract the local partition ID of local row i.
The partitions created by Ifpack2::Partitioner derived clased are non-overlapping in graph sense. This means that each row (or, more approriately, vertex) of G is assigned to exactly one partition.
Partitioner can be extended using the functionalities of class Ifpack2_OverlappingPartitioner (itself derived from Ifpack2_Partitioner. This class extends the non-overlapping partitions by the required amount of overlap, considering local nodes only (that is, this overlap do not modify the overlap among the processes).
Ifpack2::Partitioner is a pure virtual class. Concrete implementations are:
Generically, a constructor requires a Tpetra::RowGraph object.
An example use of a Ifpack2::Partitioner derived class is as follows:
When overlapping partitiones are created, the user can get the row ID contained in each partition as follows:
Ifpack2_Partitioner is used to create the subblocks in Ifpack2_BlockJacobi, Ifpack2_BlockGaussSeidel, and Ifpack2_BlockSymGaussSeidel.
|
inlinevirtual |
Destructor.
|
pure virtual |
Returns the number of computed local partitions.
|
pure virtual |
Returns the overlapping level.
|
pure virtual |
Returns the local non-overlapping partition ID of the specified row.
Returns the non-overlapping partition ID of the specified row.
| MyRow | - (In) local row number |
|
pure virtual |
Returns the local overlapping partition ID of the j-th node in partition i.
|
pure virtual |
Returns the number of rows contained in specified partition.
|
pure virtual |
Copies into List the rows in the (overlapping) partition Part.
|
pure virtual |
Returns an ArrayRCP to the integer vector containing the non-overlapping partition ID of each local row.
|
pure virtual |
Sets all the parameters for the partitioner.
|
pure virtual |
Computes the partitions. Returns 0 if successful.
|
pure virtual |
Returns true if partitions have been computed successfully.
|
pure virtual |
Prints basic information about the partitioning object.
1.8.11