|
Zoltan2
Version of the Day
|
This class provides geometric coordinates with optional weights to the Zoltan2 algorithm. More...
#include <Zoltan2_CoordinateModel.hpp>


Public Member Functions | |
| CoordinateModel () | |
| int | getCoordinateDim () const |
| Returns the dimension of the coordinates. More... | |
| size_t | getLocalNumCoordinates () const |
| Returns the number of coordinates on this process. More... | |
| global_size_t | getGlobalNumCoordinates () const |
| Returns the global number coordinates. More... | |
| int | getCoordinateWeightDim () const |
| Returns the dimension (0 or greater) of coordinate weights. More... | |
| size_t | getCoordinates (ArrayView< const gno_t > &Ids, ArrayView< input_t > &xyz, ArrayView< input_t > &wgts) const |
| Returns the coordinate ids, values and optional 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... | |
This class provides geometric coordinates with optional weights to the Zoltan2 algorithm.
The template parameter is an Input Adapter. Input adapters are templated on the basic user input type.
Definition at line 71 of file Zoltan2_CoordinateModel.hpp.
|
inline |
Definition at line 82 of file Zoltan2_CoordinateModel.hpp.
|
inline |
Returns the dimension of the coordinates.
Definition at line 92 of file Zoltan2_CoordinateModel.hpp.
|
inline |
Returns the number of coordinates on this process.
Definition at line 96 of file Zoltan2_CoordinateModel.hpp.
|
inline |
Returns the global number coordinates.
Definition at line 100 of file Zoltan2_CoordinateModel.hpp.
|
inline |
Returns the dimension (0 or greater) of coordinate weights.
Definition at line 104 of file Zoltan2_CoordinateModel.hpp.
|
inline |
Returns the coordinate ids, values and optional weights.
| Ids | will on return point to the list of the global Ids for each coordinate on this process. |
| xyz | on return is a list of getCoordinateDim() StridedData objects, each containing the coordinates for one dimension. If the coordinate dimension is three, then the coordinates for Ids[k] are xyz[0][k], xyz[1][k], xyz[2][k]. |
| wgts | on return is a list of getCoordinateWeightDim() StridedData objects, each containing the weights for one weight dimension. For the dimension , the weight for Ids[k] is wgts[d][k]. |
Memory for this data is allocated either by the user or the Model. The caller gets a view of the data.
Definition at line 128 of file Zoltan2_CoordinateModel.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 136 of file Zoltan2_CoordinateModel.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 141 of file Zoltan2_CoordinateModel.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 146 of file Zoltan2_CoordinateModel.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.11