|
Zoltan2
|
The base class for all model classes. More...
#include <Zoltan2_Model.hpp>

Public Member Functions | |
| virtual | ~Model () |
| Model () | |
| RCP< const idmap_t > | getIdentifierMap () const |
| Return the map from user global identifiers to internal Zoltan2 global numbers. | |
| virtual size_t | getLocalNumObjects () const =0 |
| Return the local number of objects. | |
| virtual global_size_t | getGlobalNumObjects () const =0 |
| Return the global number of objects. | |
Protected Member Functions | |
| void | setIdentifierMap (RCP< const idmap_t > &map) |
| Set the IdentifierMap used by the model. | |
The base class for all model classes.
The Model is the computational model created by a Problem based on the user's input data and parameters. Graphs, hypergraph, and collections of geometric coordinates are examples of computational models.
The Problem passes the Model to an algorithm. The algorithm queries the Model for input to its calculation.
Definition at line 110 of file Zoltan2_Model.hpp.
| virtual Zoltan2::Model< Adapter >::~Model | ( | ) | [inline, virtual] |
Destructor
Definition at line 126 of file Zoltan2_Model.hpp.
| Zoltan2::Model< Adapter >::Model | ( | ) | [inline] |
Constructor
Definition at line 130 of file Zoltan2_Model.hpp.
| RCP<const idmap_t > Zoltan2::Model< Adapter >::getIdentifierMap | ( | ) | const [inline] |
Return the map from user global identifiers to internal Zoltan2 global numbers.
Every model must have an IdentifierMap, whether it needs for mapping or not. The Map can simply indicate that Zoltan2 global numbers are identical to the application's global IDs.
Definition at line 139 of file Zoltan2_Model.hpp.
| virtual size_t Zoltan2::Model< Adapter >::getLocalNumObjects | ( | ) | const [pure virtual] |
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.
Implemented in Zoltan2::GraphModel< Adapter >, Zoltan2::CoordinateModel< Adapter >, and Zoltan2::IdentifierModel< Adapter >.
| virtual global_size_t Zoltan2::Model< Adapter >::getGlobalNumObjects | ( | ) | const [pure virtual] |
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.
Implemented in Zoltan2::GraphModel< Adapter >, Zoltan2::CoordinateModel< Adapter >, and Zoltan2::IdentifierModel< Adapter >.
| void Zoltan2::Model< Adapter >::setIdentifierMap | ( | RCP< const idmap_t > & | map | ) | [inline, protected] |
Set the IdentifierMap used by the model.
The Model should set the identifier map with this call during the constructor.
Definition at line 165 of file Zoltan2_Model.hpp.
1.7.6.1