|
Zoltan2
Version of the Day
|
IdentifierModel defines the interface for all identifier models. More...
#include <Zoltan2_IdentifierModel.hpp>


Public Member Functions | |
| IdentifierModel () | |
| size_t | getLocalNumIdentifiers () const |
| Returns the number identifiers on this process. More... | |
| global_size_t | getGlobalNumIdentifiers () const |
| Returns the global number identifiers. More... | |
| int | getIdentifierWeightDim () const |
| Returns the dimension (0 or greater) of identifier weights. More... | |
| size_t | getIdentifierList (ArrayView< const gno_t > &Ids, ArrayView< input_t > &wgts) const |
| Sets pointers to this process' identifier Ids and their weights. More... | |
| size_t | getLocalNumObjects () const |
| Return the local number of objects. More... | |
| size_t | getGlobalNumObjects () const |
| Return the global number of objects. More... | |
| void | getGlobalObjectIds (ArrayView< const gno_t > &gnos) const |
| Get a list of the global Ids for the local objects. More... | |
| RCP< const idmap_t > | getIdentifierMap () const |
| Return the map from user global identifiers to internal Zoltan2 global numbers. More... | |
| int | getNumWeights () const |
| Return the number of weights supplied for each object. If the user supplied no weights, dimension one is returned, because one dimension of uniform weights is implied. More... | |
| bool | uniformWeight (int weightDim) const |
| Return whether the weights are uniform or not. More... | |
Protected Member Functions | |
| void | setIdentifierMap (RCP< const idmap_t > &map) |
| Set the IdentifierMap used by the model. More... | |
| void | setWeightArrayLengths (const Array< lno_t > &len, const Teuchos::Comm< int > &comm) |
| Set the length of each weight array. The Model calls this in the constructor so we know which weights are uniform. If lengths for a given weight dimension are zero on all processes, then we know that uniform weights are implied. More... | |
Static Protected Member Functions | |
| template<typename T > | |
| static void | maxCount (const Comm< int > &comm, Array< T > &countValues) |
| Get the global maximum for each of an array of values. More... | |
| template<typename T > | |
| static void | maxCount (const Comm< int > &comm, T &value1) |
| Get the global maximum for a value. More... | |
| template<typename T > | |
| static void | maxCount (const Comm< int > &comm, T &value1, T &value2) |
| Get the global maximums for each of two values. More... | |
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.
Explicit instantiations exist for:
Definition at line 82 of file Zoltan2_IdentifierModel.hpp.
|
inline |
Definition at line 95 of file Zoltan2_IdentifierModel.hpp.
|
inline |
Returns the number identifiers on this process.
Definition at line 105 of file Zoltan2_IdentifierModel.hpp.
|
inline |
Returns the global number identifiers.
Definition at line 109 of file Zoltan2_IdentifierModel.hpp.
|
inline |
Returns the dimension (0 or greater) of identifier weights.
Definition at line 113 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 126 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 133 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 138 of file Zoltan2_IdentifierModel.hpp.
|
inlinevirtual |
Get a list of the global Ids for the local objects.
Set a view to the list of object global numbers, which may be vertex IDs, matrix row IDs, identifiers, coordinate IDs, or mesh node or element IDs.
Implements Zoltan2::Model< Adapter >.
Definition at line 143 of file Zoltan2_IdentifierModel.hpp.
|
inlineinherited |
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 135 of file Zoltan2_Model.hpp.
|
inlineinherited |
Return the number of weights supplied for each object. If the user supplied no weights, dimension one is returned, because one dimension of uniform weights is implied.
The concrete subclasses, however, return the number of weights supplied by the user.
Definition at line 144 of file Zoltan2_Model.hpp.
|
inlineinherited |
Return whether the weights are uniform or not.
| weightDim | a value from 0 to one less than the number of weights. |
Definition at line 151 of file Zoltan2_Model.hpp.
|
inlineprotectedinherited |
Set the IdentifierMap used by the model.
The Model should set the identifier map with this call during the constructor.
Definition at line 184 of file Zoltan2_Model.hpp.
|
inlineprotectedinherited |
Set the length of each weight array. The Model calls this in the constructor so we know which weights are uniform. If lengths for a given weight dimension are zero on all processes, then we know that uniform weights are implied.
This must be called by all processes.
Definition at line 193 of file Zoltan2_Model.hpp.
|
inlinestaticprotectedinherited |
Get the global maximum for each of an array of values.
Certain counts may not be available from processes that have no data. Models should find the maximum value of the count across all processes to get the correct count. (Examples are coordinate dimension and weight dimension.)
Definition at line 241 of file Zoltan2_Model.hpp.
|
inlinestaticprotectedinherited |
Get the global maximum for a value.
Certain counts may not be available from processes that have no data. Models should find the maximum value of the count across all processes to get the correct count. (Examples are coordinate dimension and weight dimension.)
Definition at line 261 of file Zoltan2_Model.hpp.
|
inlinestaticprotectedinherited |
Get the global maximums for each of two values.
Certain counts may not be available from processes that have no data. Models should find the maximum value of the count across all processes to get the correct count. (Examples are coordinate dimension and weight dimension.)
Definition at line 276 of file Zoltan2_Model.hpp.
1.8.5