Zoltan2
|
#include <Zoltan2_TestHelpers.hpp>
#include <zoltan.h>
#include <Teuchos_CommandLineProcessor.hpp>
#include <vector>
#include <ostream>
#include <sstream>
#include <string>
#include <Zoltan2_XpetraMultiVectorAdapter.hpp>
#include <Zoltan2_PartitioningSolution.hpp>
#include <Zoltan2_PartitioningProblem.hpp>
#include <GeometricGenerator.hpp>
#include <Zoltan2_EvaluatePartition.hpp>
Go to the source code of this file.
Typedefs | |
typedef Tpetra::MultiVector < zscalar_t, zlno_t, zgno_t, znode_t > | tMVector_t |
typedef Tpetra::Map< zlno_t, zgno_t, znode_t > | tMap_t |
Enumerations | |
enum | weightTypes { upDown, roundRobin, increasing, numWeightTypes, upDown, roundRobin, increasing, numWeightTypes, upDown, roundRobin, increasing, numWeightTypes } |
Functions | |
std::string | trim_right_copy (const std::string &s, const std::string &delimiters=" \f\n\r\t\v") |
std::string | trim_left_copy (const std::string &s, const std::string &delimiters=" \f\n\r\t\v") |
std::string | trim_copy (const std::string &s, const std::string &delimiters=" \f\n\r\t\v") |
bool | getArgumentValue (std::string &argumentid, double &argumentValue, std::string argumentline) |
std::string | convert_to_string (char *args) |
int | getNumObj (void *data, int *ierr) |
int | getDim (void *data, int *ierr) |
void | getObjList (void *data, int numGid, int numLid, zgno_t *gids, zgno_t *lids, int num_wgts, float *obj_wgts, int *ierr) |
void | getCoords (void *data, int numGid, int numLid, int numObj, zgno_t *gids, zgno_t *lids, int dim, double *coords, int *ierr) |
ArrayRCP< zscalar_t > | makeWeights (const RCP< const Teuchos::Comm< int > > &comm, zlno_t len, weightTypes how, zscalar_t scale, int rank) |
const RCP< tMVector_t > | getMeshCoordinates (const RCP< const Teuchos::Comm< int > > &comm, zgno_t numGlobalCoords) |
Create a mesh of approximately the desired size. More... | |
void | getArgVals (int narg, char **arg, int &numParts, std::string ¶mFile) |
void | readGeoGenParams (std::string paramFileName, Teuchos::ParameterList &geoparams, const RCP< const Teuchos::Comm< int > > &comm) |
int | main (int narg, char *arg[]) |
Variables | |
static ArrayRCP< ArrayRCP < zscalar_t > > | weights |
static RCP< tMVector_t > | coordinates |
const char | param_comment = '#' |
typedef Tpetra::MultiVector<zscalar_t, zlno_t, zgno_t, znode_t> tMVector_t |
Definition at line 43 of file partition/rcbPerformanceZ1.cpp.
Definition at line 44 of file partition/rcbPerformanceZ1.cpp.
enum weightTypes |
Enumerator | |
---|---|
upDown | |
roundRobin | |
increasing | |
numWeightTypes | |
upDown | |
roundRobin | |
increasing | |
numWeightTypes | |
upDown | |
roundRobin | |
increasing | |
numWeightTypes |
Definition at line 148 of file partition/rcbPerformanceZ1.cpp.
std::string trim_right_copy | ( | const std::string & | s, |
const std::string & | delimiters = " \f\n\r\t\v" |
||
) |
Definition at line 52 of file partition/rcbPerformanceZ1.cpp.
std::string trim_left_copy | ( | const std::string & | s, |
const std::string & | delimiters = " \f\n\r\t\v" |
||
) |
Definition at line 59 of file partition/rcbPerformanceZ1.cpp.
std::string trim_copy | ( | const std::string & | s, |
const std::string & | delimiters = " \f\n\r\t\v" |
||
) |
Definition at line 66 of file partition/rcbPerformanceZ1.cpp.
bool getArgumentValue | ( | std::string & | argumentid, |
double & | argumentValue, | ||
std::string | argumentline | ||
) |
Definition at line 74 of file partition/rcbPerformanceZ1.cpp.
std::string convert_to_string | ( | char * | args | ) |
Definition at line 85 of file partition/rcbPerformanceZ1.cpp.
int getNumObj | ( | void * | data, |
int * | ierr | ||
) |
Definition at line 91 of file partition/rcbPerformanceZ1.cpp.
int getDim | ( | void * | data, |
int * | ierr | ||
) |
Definition at line 98 of file partition/rcbPerformanceZ1.cpp.
void getObjList | ( | void * | data, |
int | numGid, | ||
int | numLid, | ||
zgno_t * | gids, | ||
zgno_t * | lids, | ||
int | num_wgts, | ||
float * | obj_wgts, | ||
int * | ierr | ||
) |
Definition at line 104 of file partition/rcbPerformanceZ1.cpp.
void getCoords | ( | void * | data, |
int | numGid, | ||
int | numLid, | ||
int | numObj, | ||
zgno_t * | gids, | ||
zgno_t * | lids, | ||
int | dim, | ||
double * | coords, | ||
int * | ierr | ||
) |
Definition at line 129 of file partition/rcbPerformanceZ1.cpp.
ArrayRCP<zscalar_t> makeWeights | ( | const RCP< const Teuchos::Comm< int > > & | comm, |
zlno_t | len, | ||
weightTypes | how, | ||
zscalar_t | scale, | ||
int | rank | ||
) |
Definition at line 155 of file partition/rcbPerformanceZ1.cpp.
const RCP<tMVector_t> getMeshCoordinates | ( | const RCP< const Teuchos::Comm< int > > & | comm, |
zgno_t | numGlobalCoords | ||
) |
Create a mesh of approximately the desired size.
We want 3 dimensions close to equal in length.
Definition at line 190 of file partition/rcbPerformanceZ1.cpp.
void getArgVals | ( | int | narg, |
char ** | arg, | ||
int & | numParts, | ||
std::string & | paramFile | ||
) |
Definition at line 327 of file partition/rcbPerformanceZ1.cpp.
void readGeoGenParams | ( | std::string | paramFileName, |
Teuchos::ParameterList & | geoparams, | ||
const RCP< const Teuchos::Comm< int > > & | comm | ||
) |
Definition at line 357 of file partition/rcbPerformanceZ1.cpp.
int main | ( | int | narg, |
char * | arg[] | ||
) |
Definition at line 410 of file partition/rcbPerformanceZ1.cpp.
|
static |
Definition at line 46 of file partition/rcbPerformanceZ1.cpp.
|
static |
Definition at line 47 of file partition/rcbPerformanceZ1.cpp.
const char param_comment = '#' |
Definition at line 50 of file partition/rcbPerformanceZ1.cpp.