#include <Zoltan2_Adapter.hpp>
|
| virtual enum BaseAdapterType | adapterType () const =0 |
| | Returns the type of adapter. More...
|
| |
| virtual | ~BaseAdapter () |
| | Destructor. More...
|
| |
| virtual void | getIDsView (const gno_t *&Ids) const =0 |
| | Provide a pointer to this process' identifiers. More...
|
| |
| virtual void | getWeightsView (const scalar_t *&wgt, int &stride, int idx=0) const |
| | Provide pointer to a weight array with stride. More...
|
| |
| void | getPartsView (const part_t *&inputPart) const |
| | Provide pointer to an array containing the input part assignment for each ID. The input part information may be used for re-partitioning to reduce data movement, or for mapping parts to processes. Adapters may return NULL for this pointer (the default behavior); if NULL is returned, algorithms will assume the rank. More...
|
| |
| template<typename Adapter > |
| void | applyPartitioningSolution (const User &in, User *&out, const PartitioningSolution< Adapter > &solution) const |
| | Apply a PartitioningSolution to an input. More...
|
| |
| virtual | ~BaseAdapterRoot () |
| |
| virtual size_t | getLocalNumIDs () const =0 |
| | Returns the number of objects on this process. More...
|
| |
| virtual int | getNumWeightsPerID () const |
| | Returns the number of weights per object. Number of weights per object should be zero or greater. If zero, then it is assumed that all objects are equally weighted. Default is zero weights per ID. More...
|
| |
template<typename User>
class Zoltan2::BaseAdapter< User >
Definition at line 101 of file Zoltan2_Adapter.hpp.
◆ lno_t
◆ gno_t
◆ scalar_t
◆ part_t
◆ ~BaseAdapter()
◆ adapterType()
◆ getIDsView()
◆ getWeightsView()
◆ getPartsView()
Provide pointer to an array containing the input part assignment for each ID. The input part information may be used for re-partitioning to reduce data movement, or for mapping parts to processes. Adapters may return NULL for this pointer (the default behavior); if NULL is returned, algorithms will assume the rank.
- Parameters
-
| inputPart | on return a pointer to input part numbers |
Definition at line 148 of file Zoltan2_Adapter.hpp.
◆ applyPartitioningSolution()
template<typename User>
template<typename Adapter >
Apply a PartitioningSolution to an input.
This is not a required part of the InputAdapter interface. However if the Caller calls a Problem method to redistribute data, it needs this method to perform the redistribution.
- Parameters
-
| in | An input object with a structure and assignment of of global Ids to processes that matches that of the input data that instantiated this Adapter. |
| out | On return this should point to a newly created object with the specified partitioning. |
| solution | The Solution object created by a Problem should be supplied as the third argument. It must have been templated on user data that has the same global ID distribution as this user data. |
- Returns
- Returns the number of local Ids in the new partition.
Definition at line 174 of file Zoltan2_Adapter.hpp.
The documentation for this class was generated from the following file: