Zoltan2
|
#include <Zoltan2_EvaluatePartition.hpp>
#include <Zoltan2_TestHelpers.hpp>
#include <Zoltan2_BasicIdentifierAdapter.hpp>
#include <Zoltan2_XpetraCrsGraphAdapter.hpp>
#include <stdlib.h>
#include <vector>
Go to the source code of this file.
Typedefs | |
typedef Zoltan2::BasicUserTypes < zscalar_t, zlno_t, zgno_t > | user_t |
typedef Zoltan2::BasicIdentifierAdapter < user_t > | basic_idInput_t |
typedef Tpetra::CrsGraph < zlno_t, zgno_t, znode_t > | tcrsGraph_t |
typedef Zoltan2::XpetraCrsGraphAdapter < tcrsGraph_t, user_t > | graph_idInput_t |
Functions | |
template<class idInput_t > | |
void | doTest (RCP< const Comm< int > > comm, int numLocalObj, int nWeights, int numLocalParts, bool givePartSizes, bool useDegreeAsWeight=false) |
template<class idInput_t > | |
void | runTestSuite (RCP< const Comm< int > > comm, bool bCanTestDegreeAsWeights) |
int | main (int narg, char *arg[]) |
template<class idInput_t > | |
void | evaluate_imbalance_results (RCP< const Comm< int > > comm, RCP< Zoltan2::EvaluatePartition< idInput_t >> metricObject, int numLocalObj, int nWeights, int original_numLocalParts, bool givePartSizes) |
template<class idInput_t > | |
void | evaluate_adapter_results (RCP< const Comm< int > > comm, RCP< Zoltan2::EvaluatePartition< idInput_t >> metricObject, int numLocalObj, int nWeights, int original_numLocalParts, bool givePartSizes) |
template<> | |
void | evaluate_adapter_results< graph_idInput_t > (RCP< const Comm< int > > comm, RCP< Zoltan2::EvaluatePartition< graph_idInput_t >> metricObject, int numLocalObj, int nWeights, int original_numLocalParts, bool givePartSizes) |
template<> | |
void | evaluate_adapter_results< basic_idInput_t > (RCP< const Comm< int > > comm, RCP< Zoltan2::EvaluatePartition< basic_idInput_t >> metricObject, int numLocalObj, int nWeights, int original_numLocalParts, bool givePartSizes) |
template<class idInput_t > | |
idInput_t * | create_adapter (RCP< const Comm< int > > comm, int numLocalObj, zgno_t *myGids, std::vector< const zscalar_t * > &weights, std::vector< int > &strides, bool useDegreeAsWeight) |
template<> | |
graph_idInput_t * | create_adapter< graph_idInput_t > (RCP< const Comm< int > > comm, int numLocalObj, zgno_t *myGids, std::vector< const zscalar_t * > &weights, std::vector< int > &strides, bool useDegreeAsWeight) |
template<> | |
basic_idInput_t * | create_adapter< basic_idInput_t > (RCP< const Comm< int > > comm, int numLocalObj, zgno_t *myGids, std::vector< const zscalar_t * > &weights, std::vector< int > &strides, bool useDegreeAsWeight) |
typedef Zoltan2::BasicUserTypes<zscalar_t, zlno_t, zgno_t> user_t |
Definition at line 39 of file Metric.cpp.
Definition at line 42 of file Metric.cpp.
typedef Tpetra::CrsGraph<zlno_t, zgno_t, znode_t> tcrsGraph_t |
Definition at line 45 of file Metric.cpp.
Definition at line 46 of file Metric.cpp.
void doTest | ( | RCP< const Comm< int > > | comm, |
int | numLocalObj, | ||
int | nWeights, | ||
int | numLocalParts, | ||
bool | givePartSizes, | ||
bool | useDegreeAsWeight = false |
||
) |
Definition at line 339 of file Metric.cpp.
void runTestSuite | ( | RCP< const Comm< int > > | comm, |
bool | bCanTestDegreeAsWeights | ||
) |
Definition at line 50 of file Metric.cpp.
int main | ( | int | narg, |
char * | arg[] | ||
) |
Definition at line 69 of file Metric.cpp.
void evaluate_imbalance_results | ( | RCP< const Comm< int > > | comm, |
RCP< Zoltan2::EvaluatePartition< idInput_t >> | metricObject, | ||
int | numLocalObj, | ||
int | nWeights, | ||
int | original_numLocalParts, | ||
bool | givePartSizes | ||
) |
Definition at line 96 of file Metric.cpp.
void evaluate_adapter_results | ( | RCP< const Comm< int > > | comm, |
RCP< Zoltan2::EvaluatePartition< idInput_t >> | metricObject, | ||
int | numLocalObj, | ||
int | nWeights, | ||
int | original_numLocalParts, | ||
bool | givePartSizes | ||
) |
Definition at line 142 of file Metric.cpp.
void evaluate_adapter_results< graph_idInput_t > | ( | RCP< const Comm< int > > | comm, |
RCP< Zoltan2::EvaluatePartition< graph_idInput_t >> | metricObject, | ||
int | numLocalObj, | ||
int | nWeights, | ||
int | original_numLocalParts, | ||
bool | givePartSizes | ||
) |
Definition at line 149 of file Metric.cpp.
void evaluate_adapter_results< basic_idInput_t > | ( | RCP< const Comm< int > > | comm, |
RCP< Zoltan2::EvaluatePartition< basic_idInput_t >> | metricObject, | ||
int | numLocalObj, | ||
int | nWeights, | ||
int | original_numLocalParts, | ||
bool | givePartSizes | ||
) |
Definition at line 251 of file Metric.cpp.
idInput_t* create_adapter | ( | RCP< const Comm< int > > | comm, |
int | numLocalObj, | ||
zgno_t * | myGids, | ||
std::vector< const zscalar_t * > & | weights, | ||
std::vector< int > & | strides, | ||
bool | useDegreeAsWeight | ||
) |
Definition at line 259 of file Metric.cpp.
graph_idInput_t* create_adapter< graph_idInput_t > | ( | RCP< const Comm< int > > | comm, |
int | numLocalObj, | ||
zgno_t * | myGids, | ||
std::vector< const zscalar_t * > & | weights, | ||
std::vector< int > & | strides, | ||
bool | useDegreeAsWeight | ||
) |
Definition at line 268 of file Metric.cpp.
basic_idInput_t* create_adapter< basic_idInput_t > | ( | RCP< const Comm< int > > | comm, |
int | numLocalObj, | ||
zgno_t * | myGids, | ||
std::vector< const zscalar_t * > & | weights, | ||
std::vector< int > & | strides, | ||
bool | useDegreeAsWeight | ||
) |
Definition at line 328 of file Metric.cpp.