|
Zoltan2
|
CommGraphModel defines the interface required for communication graph. More...
#include <Zoltan2_CommGraphModel.hpp>


Public Member Functions | |
| ~CommGraphModel () | |
| Destructor. More... | |
| CommGraphModel (const RCP< const MatrixAdapter< user_t, userCoord_t > > &ia, const RCP< const Environment > &env, const RCP< const Comm< int > > &comm) | |
| Constructor. More... | |
| CommGraphModel (const RCP< const GraphAdapter< user_t, userCoord_t > > &ia, const RCP< const Environment > &env, const RCP< const Comm< int > > &comm) | |
| CommGraphModel (const RCP< const MeshAdapter< user_t > > &ia, const RCP< const Environment > &env, const RCP< const Comm< int > > &comm) | |
| CommGraphModel (const RCP< const VectorAdapter< userCoord_t > > &, const RCP< const Environment > &, const RCP< const Comm< int > > &) | |
| CommGraphModel (const RCP< const IdentifierAdapter< user_t > > &ia, const RCP< const Environment > &env, const RCP< const Comm< int > > &comm) | |
| const RCP< const Comm< int > > | getComm () |
| Return the communicator used by the model. More... | |
| size_t | getLocalNumVertices () const |
| Returns the number vertices on this process. More... | |
| size_t | getGlobalNumVertices () const |
| Returns the global number vertices. More... | |
| size_t | getLocalNumEdges () const |
| Returns the number of edges on this process. In global or subset graphs, includes off-process edges. More... | |
| size_t | getGlobalNumEdges () const |
| Returns the global number edges. For local graphs, the number of global edges is the number of local edges. More... | |
| int | getNumWeightsPerVertex () const |
| Returns the number (0 or greater) of weights per vertex. More... | |
| int | getNumWeightsPerEdge () const |
| Returns the number (0 or greater) of weights per edge. More... | |
| size_t | getVertexList (ArrayView< const gno_t > &Ids, ArrayView< input_t > &wgts) const |
| Sets pointers to this process' vertex Ids and their weights. More... | |
| size_t | getEdgeList (ArrayView< const gno_t > &edgeIds, ArrayView< const offset_t > &offsets, ArrayView< input_t > &wgts) const |
| void | getVertexDist (ArrayView< size_t > &vtxdist) const |
| Return the vtxDist array Array of size comm->getSize() + 1 Array[n+1] - Array[n] is number of vertices on rank n. More... | |
| size_t | getLocalNumObjects () const |
| Return the local number of objects. More... | |
| size_t | getGlobalNumObjects () const |
| Return the global number of objects. More... | |
| int | getNumActiveRanks () const |
| int | getDestinationRank () const |
| int | getStartRank () const |
| int | getEndRank () const |
Public Member Functions inherited from Zoltan2::Model< Adapter > | |
| virtual | ~Model () |
| Model () | |
CommGraphModel defines the interface required for communication graph.
The constructor of the GraphModel can be a global call, requiring all processes in the application to call it. The rest of the methods should be local methods.
The template parameter is an InputAdapter, which is an object that provides a uniform interface for models to the user's input data.
For now, this model only works with GraphAdapter (XpetraCrsGraphAdapter).
Definition at line 91 of file Zoltan2_CommGraphModel.hpp.
|
inline |
Destructor.
Definition at line 107 of file Zoltan2_CommGraphModel.hpp.
|
inline |
Constructor.
| inputAdapter | a pointer to the user's data |
| env | object containing the parameters |
| comm | communicator for the problem |
All processes in the communicator must call the constructor.
Definition at line 118 of file Zoltan2_CommGraphModel.hpp.
| Zoltan2::CommGraphModel< Adapter >::CommGraphModel | ( | const RCP< const GraphAdapter< user_t, userCoord_t > > & | ia, |
| const RCP< const Environment > & | env, | ||
| const RCP< const Comm< int > > & | comm | ||
| ) |
Definition at line 290 of file Zoltan2_CommGraphModel.hpp.
|
inline |
Definition at line 127 of file Zoltan2_CommGraphModel.hpp.
|
inline |
Definition at line 133 of file Zoltan2_CommGraphModel.hpp.
|
inline |
Definition at line 139 of file Zoltan2_CommGraphModel.hpp.
|
inline |
Return the communicator used by the model.
Definition at line 147 of file Zoltan2_CommGraphModel.hpp.
|
inline |
Returns the number vertices on this process.
Definition at line 151 of file Zoltan2_CommGraphModel.hpp.
|
inline |
Returns the global number vertices.
Definition at line 155 of file Zoltan2_CommGraphModel.hpp.
|
inline |
Returns the number of edges on this process. In global or subset graphs, includes off-process edges.
Definition at line 160 of file Zoltan2_CommGraphModel.hpp.
|
inline |
Returns the global number edges. For local graphs, the number of global edges is the number of local edges.
Definition at line 165 of file Zoltan2_CommGraphModel.hpp.
|
inline |
Returns the number (0 or greater) of weights per vertex.
Definition at line 169 of file Zoltan2_CommGraphModel.hpp.
|
inline |
Returns the number (0 or greater) of weights per edge.
Definition at line 173 of file Zoltan2_CommGraphModel.hpp.
|
inline |
Sets pointers to this process' vertex Ids and their weights.
| Ids | will on return point to the list of the global Ids for each vertex on this process. |
| wgts | If vertex weights is available, wgts will on return point to a StridedData object of weights. |
Definition at line 183 of file Zoltan2_CommGraphModel.hpp.
|
inline |
Definition at line 196 of file Zoltan2_CommGraphModel.hpp.
|
inline |
Return the vtxDist array Array of size comm->getSize() + 1 Array[n+1] - Array[n] is number of vertices on rank n.
Definition at line 210 of file Zoltan2_CommGraphModel.hpp.
|
inlinevirtual |
Return the local number of objects.
Return the local number of objects, which may be vertices, matrix rows, identifiers, coordinates, or mesh nodes or elements.
Implements Zoltan2::Model< Adapter >.
Definition at line 223 of file Zoltan2_CommGraphModel.hpp.
|
inlinevirtual |
Return the global number of objects.
Return the global number of objects, which may be vertices, matrix rows, identifiers, coordinates, or mesh nodes or elements.
Implements Zoltan2::Model< Adapter >.
Definition at line 225 of file Zoltan2_CommGraphModel.hpp.
|
inline |
Definition at line 231 of file Zoltan2_CommGraphModel.hpp.
|
inline |
Definition at line 233 of file Zoltan2_CommGraphModel.hpp.
|
inline |
Definition at line 235 of file Zoltan2_CommGraphModel.hpp.
|
inline |
Definition at line 237 of file Zoltan2_CommGraphModel.hpp.