46 #ifndef MUELU_ZOLTANINTERFACE_DECL_HPP 47 #define MUELU_ZOLTANINTERFACE_DECL_HPP 51 #if defined(HAVE_MUELU_ZOLTAN) && defined(HAVE_MPI) 53 #include <zoltan_cpp.h> 55 #include <Xpetra_Matrix.hpp> 56 #include <Xpetra_VectorFactory.hpp> 76 template <
class Scalar,
77 class LocalOrdinal =
typename Xpetra::Matrix<double>::local_ordinal_type,
78 class GlobalOrdinal =
typename Xpetra::Matrix<double, LocalOrdinal>::global_ordinal_type,
79 class Node =
typename Xpetra::Matrix<double, LocalOrdinal, GlobalOrdinal>::node_type>
81 #undef MUELU_ZOLTANINTERFACE_SHORT 130 ZOLTAN_ID_PTR lids,
int wgtDim,
float *weights,
int *ierr);
148 static void GetProblemGeometry(
void *data,
int numGIDEntries,
int numLIDEntries,
int numObjectIDs,
149 ZOLTAN_ID_PTR gids, ZOLTAN_ID_PTR lids,
int dim,
double *coordinates,
int *ierr);
161 #define MUELU_ZOLTANINTERFACE_SHORT 162 #endif //if defined(HAVE_MUELU_ZOLTAN) && defined(HAVE_MPI) 164 #endif // MUELU_ZOLTANINTERFACE_DECL_HPP
static int GetProblemDimension(void *data, int *ierr)
Namespace for MueLu classes and methods.
static void GetProblemGeometry(void *data, int numGIDEntries, int numLIDEntries, int numObjectIDs, ZOLTAN_ID_PTR gids, ZOLTAN_ID_PTR lids, int dim, double *coordinates, int *ierr)
Interface to Zoltan library.
void Build(Level &level) const
Build an object with this factory.
Class that holds all level-specific information.
virtual ~ZoltanInterface()
Destructor.
static ArrayRCP< double > coalesceCoordinates(ArrayRCP< double > coord, LocalOrdinal blksize)
static void GetLocalNumberOfNonzeros(void *data, int NumGidEntries, int NumLidEntries, ZOLTAN_ID_PTR gids, ZOLTAN_ID_PTR lids, int wgtDim, float *weights, int *ierr)
void DeclareInput(Level &level) const
Specifies the data that this class needs, and the factories that generate that data.
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
ZoltanInterface()
Constructor.
Base class for factories that use one level (currentLevel).
static int GetLocalNumberOfRows(void *data, int *ierr)