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 | getIdentifierListKokkos (Kokkos::View< const gno_t *, typename node_t::device_type > &Ids, Kokkos::View< scalar_t **, typename node_t::device_type > &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 34 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 120 of file Zoltan2_IdentifierModel.hpp.
|
inline |
Returns the number of identifiers on this process.
Definition at line 59 of file Zoltan2_IdentifierModel.hpp.
|
inline |
Returns the global number identifiers.
Definition at line 63 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 75 of file Zoltan2_IdentifierModel.hpp.
|
inline |
Definition at line 88 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 104 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 106 of file Zoltan2_IdentifierModel.hpp.