Zoltan2
|
A PartitioningSolution is a solution to a partitioning problem. More...
#include <Zoltan2_MatrixPartitioningSolution.hpp>
Public Member Functions | |
MatrixPartitioningSolution (const RCP< const Environment > &env, const RCP< const Comm< int > > &comm, const RCP< Algorithm< Adapter > > &algorithm=Teuchos::null) | |
Constructor when part sizes are not supplied. More... | |
void | setIDLists (ArrayRCP< part_t > &rowIDs, ArrayRCP< part_t > &colIDs, ArrayRCP< part_t > &domainIDs, ArrayRCP< part_t > &rangeIDs) |
The algorithm uses setIDLists to set the solution. More... | |
const RCP< const Comm< int > > & | getCommunicator () const |
Remap a new partition for maximum overlap with an input partition. More... | |
const RCP< const Environment > & | getEnvironment () const |
Return the environment associated with the solution. More... | |
const gno_t * | getRowIdsView () const |
Returns list of global row IDs of the nonzeros owned by this process. More... | |
const gno_t * | getColIdsView () const |
Returns list of global column IDs of the nonzeros owned by this process. More... | |
Public Member Functions inherited from Zoltan2::Solution | |
virtual | ~Solution () |
A PartitioningSolution is a solution to a partitioning problem.
It is initialized by a PartitioningProblem, written to by an algorithm, and may be read by the user or by a data migration routine in an input adapter.
Problem computes metrics using the Solution. Should Solution have a pointer to the metrics, since it may persist after the Problem is gone?
save an RCB tree, so it can be used in repartitioning, and supplied to the caller.
doxyfy the comments in this file.
Definition at line 50 of file Zoltan2_MatrixPartitioningSolution.hpp.
Zoltan2::MatrixPartitioningSolution< Adapter >::MatrixPartitioningSolution | ( | const RCP< const Environment > & | env, |
const RCP< const Comm< int > > & | comm, | ||
const RCP< Algorithm< Adapter > > & | algorithm = Teuchos::null |
||
) |
Constructor when part sizes are not supplied.
The Solution constructor may require global communication. The rest of the Solution methods do not.
env | the environment for the application |
comm | the communicator for the problem associated with this solution |
algorithm | Algorithm, if any, used to compute the solution. |
It is possible that part sizes were supplied on other processes, so this constructor does do a check to see if part sizes need to be globally calculated.
Definition at line 278 of file Zoltan2_MatrixPartitioningSolution.hpp.
void Zoltan2::MatrixPartitioningSolution< Adapter >::setIDLists | ( | ArrayRCP< part_t > & | rowIDs, |
ArrayRCP< part_t > & | colIDs, | ||
ArrayRCP< part_t > & | domainIDs, | ||
ArrayRCP< part_t > & | rangeIDs | ||
) |
The algorithm uses setIDLists to set the solution.
rowIDs | List of row numbers that the nonzeros for this processor contain. |
colIDs | List of column numbers that the nonzeros for this processor contain. |
domainIDs | Domain vector Ids assigned to this process |
rangeIDs | Range vector Ids assigned to this process |
Definition at line 290 of file Zoltan2_MatrixPartitioningSolution.hpp.
|
inline |
Remap a new partition for maximum overlap with an input partition.
Assumptions for this version: input part assignment == processor rank for every local object. assuming nGlobalParts <= num ranks TODO: Write a version that takes the input part number as input; this change requires input parts in adapters to be provided in the Adapter. TODO: For repartitioning, compare to old remapping results; see Zoltan1.
Return the communicator associated with the solution.
Definition at line 150 of file Zoltan2_MatrixPartitioningSolution.hpp.
|
inline |
Return the environment associated with the solution.
Definition at line 154 of file Zoltan2_MatrixPartitioningSolution.hpp.
|
inline |
Returns list of global row IDs of the nonzeros owned by this process.
Definition at line 159 of file Zoltan2_MatrixPartitioningSolution.hpp.
|
inline |
Returns list of global column IDs of the nonzeros owned by this process.
Definition at line 170 of file Zoltan2_MatrixPartitioningSolution.hpp.