Zoltan2
|
IdentifierModel defines the interface for all identifier models. More...
#include <Zoltan2_IdentifierModel.hpp>
Public Member Functions | |
IdentifierModel (const RCP< const Adapter > &ia, const RCP< const Environment > &env, const RCP< const Comm< int > > &comm, modelFlag_t &modelFlags) | |
Constructor. More... | |
size_t | getLocalNumIdentifiers () const |
global_size_t | getGlobalNumIdentifiers () const |
size_t | getIdentifierList (ArrayView< const gno_t > &Ids, ArrayView< input_t > &wgts) const |
size_t | getLocalNumObjects () const |
Return the local number of objects. More... | |
size_t | getGlobalNumObjects () const |
Return the global number of objects. More... | |
Public Member Functions inherited from Zoltan2::Model< Adapter > | |
virtual | ~Model () |
Model () | |
IdentifierModel defines the interface for all identifier models.
The constructor of the IdentifierModel 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.
Definition at line 70 of file Zoltan2_IdentifierModel.hpp.
Zoltan2::IdentifierModel< Adapter >::IdentifierModel | ( | const RCP< const Adapter > & | ia, |
const RCP< const Environment > & | env, | ||
const RCP< const Comm< int > > & | comm, | ||
modelFlag_t & | modelFlags | ||
) |
Constructor.
ia | the input adapter from which to build the model |
env | the application environment (including problem parameters) |
comm | the problem communicator |
modelFlags | bit map of Zoltan2::IdentifierModelFlags |
Definition at line 142 of file Zoltan2_IdentifierModel.hpp.
|
inline |
Returns the number of identifiers on this process.
Definition at line 94 of file Zoltan2_IdentifierModel.hpp.
|
inline |
Returns the global number identifiers.
Definition at line 98 of file Zoltan2_IdentifierModel.hpp.
|
inline |
Sets pointers to this process' identifier Ids and their weights.
Ids | will on return point to the list of the global Ids for each identifier on this process. |
wgts | will on return point to a list of the weight or weights associated with each identifier in the Ids list. Each weight is represented as a StridedData object. |
Definition at line 110 of file Zoltan2_IdentifierModel.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 127 of file Zoltan2_IdentifierModel.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 129 of file Zoltan2_IdentifierModel.hpp.