Go to the documentation of this file.
50 #ifndef _ZOLTAN2_ADAPTER_HPP_
51 #define _ZOLTAN2_ADAPTER_HPP_
53 #include <Kokkos_Core.hpp>
100 template <
typename User>
124 Kokkos::View<gno_t *> kokkosIds;
126 ids = kokkosIds.data();
147 virtual void getWeightsView(
const scalar_t *&wgt,
int &stride,
149 Kokkos::View<scalar_t *> tempWeightsView;
150 getWeightsKokkosView(tempWeightsView, idx);
151 wgt = tempWeightsView.data();
162 virtual void getWeightsKokkosView(Kokkos::View<scalar_t *> &wgt,
199 template <
typename Adapter>
#define Z2_THROW_NOT_IMPLEMENTED
void getPartsView(const part_t *&inputPart) const
Provide pointer to a weight array with stride.
InputTraits< User >::offset_t offset_t
A PartitioningSolution is a solution to a partitioning problem.
identifier data, just a list of IDs
virtual enum BaseAdapterType adapterType() const =0
Returns the type of adapter.
InputTraits< User >::part_t part_t
virtual ~BaseAdapter()
Destructor.
virtual ~BaseAdapterRoot()
Gathering definitions used in software development.
InputTraits< User >::lno_t lno_t
InputTraits< User >::gno_t gno_t
virtual void getIDsKokkosView(Kokkos::View< gno_t * > &ids) const
Provide a pointer to this process' identifiers.
Defines the PartitioningSolution class.
BaseAdapterType
An enum to identify general types of adapters.
virtual void getIDsView(const gno_t *&ids) const
Provide a pointer to this process' identifiers.
void applyPartitioningSolution(const User &in, User *&out, const PartitioningSolution< Adapter > &solution) const
Apply a PartitioningSolution to an input.
virtual size_t getLocalNumIDs() const =0
Returns the number of objects on this process.
virtual int getNumWeightsPerID() const
Returns the number of weights per object. Number of weights per object should be zero or greater....
InputTraits< User >::scalar_t scalar_t
BaseAdapter defines methods required by all Adapters.