Zoltan2
|
BaseAdapter defines methods required by all Adapters. More...
#include <Zoltan2_Adapter.hpp>
Public Member Functions | |
virtual | ~BaseAdapterRoot ()=default |
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... | |
BaseAdapter defines methods required by all Adapters.
Adapters provide access from Zoltan2 to the user's data. The methods in the interface must be defined by users. Many built-in adapters are already defined for common data structures, such as Tpetra and Epetra objects and C-language pointers to arrays.
Definition at line 50 of file Zoltan2_Adapter.hpp.
|
virtualdefault |
|
pure virtual |
Returns the number of objects on this process.
Objects may be coordinates, graph vertices, matrix rows, etc. They are the objects to be partitioned, ordered, or colored.
Implemented in Zoltan2::MatrixAdapter< User, UserCoord >, Zoltan2::MeshAdapter< User >, Zoltan2::GraphAdapter< User, UserCoord >, Zoltan2::BasicVectorAdapter< User >, KokkosVectorAdapter< User >, VerySimpleVectorAdapter< User >, Zoltan2::XpetraMultiVectorAdapter< User >, Zoltan2::BasicIdentifierAdapter< User >, OldSchoolVectorAdapterStrided< User >, Zoltan2::BasicKokkosIdentifierAdapter< User >, and OldSchoolVectorAdapterContig< User >.
|
inlinevirtual |
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.
Reimplemented in Zoltan2::MatrixAdapter< User, UserCoord >, Zoltan2::MeshAdapter< User >, Zoltan2::GraphAdapter< User, UserCoord >, Zoltan2::BasicVectorAdapter< User >, KokkosVectorAdapter< User >, Zoltan2::XpetraMultiVectorAdapter< User >, Zoltan2::BasicKokkosIdentifierAdapter< User >, Zoltan2::BasicIdentifierAdapter< User >, OldSchoolVectorAdapterStrided< User >, and OldSchoolVectorAdapterContig< User >.
Definition at line 66 of file Zoltan2_Adapter.hpp.