Zoltan2
|
rcbPerformance with Zoltan1 More...
#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 } |
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 = '#' |
rcbPerformance with Zoltan1
Geometry is a uniform mesh.
Definition in file rcbPerformanceZ1.cpp.
typedef Tpetra::MultiVector<zscalar_t, zlno_t, zgno_t, znode_t> tMVector_t |
Definition at line 79 of file rcbPerformanceZ1.cpp.
Definition at line 80 of file rcbPerformanceZ1.cpp.
enum weightTypes |
Enumerator | |
---|---|
upDown | |
roundRobin | |
increasing | |
numWeightTypes |
Definition at line 184 of file rcbPerformanceZ1.cpp.
std::string trim_right_copy | ( | const std::string & | s, |
const std::string & | delimiters = " \f\n\r\t\v" |
||
) |
Definition at line 88 of file rcbPerformanceZ1.cpp.
std::string trim_left_copy | ( | const std::string & | s, |
const std::string & | delimiters = " \f\n\r\t\v" |
||
) |
Definition at line 95 of file rcbPerformanceZ1.cpp.
std::string trim_copy | ( | const std::string & | s, |
const std::string & | delimiters = " \f\n\r\t\v" |
||
) |
Definition at line 102 of file rcbPerformanceZ1.cpp.
bool getArgumentValue | ( | std::string & | argumentid, |
double & | argumentValue, | ||
std::string | argumentline | ||
) |
Definition at line 110 of file rcbPerformanceZ1.cpp.
std::string convert_to_string | ( | char * | args | ) |
Definition at line 121 of file rcbPerformanceZ1.cpp.
int getNumObj | ( | void * | data, |
int * | ierr | ||
) |
Definition at line 127 of file rcbPerformanceZ1.cpp.
int getDim | ( | void * | data, |
int * | ierr | ||
) |
Definition at line 134 of file 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 140 of file 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 165 of file 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 191 of file 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 226 of file rcbPerformanceZ1.cpp.
void getArgVals | ( | int | narg, |
char ** | arg, | ||
int & | numParts, | ||
std::string & | paramFile | ||
) |
Definition at line 363 of file rcbPerformanceZ1.cpp.
void readGeoGenParams | ( | std::string | paramFileName, |
Teuchos::ParameterList & | geoparams, | ||
const RCP< const Teuchos::Comm< int > > & | comm | ||
) |
Definition at line 393 of file rcbPerformanceZ1.cpp.
int main | ( | int | narg, |
char * | arg[] | ||
) |
Definition at line 446 of file rcbPerformanceZ1.cpp.
|
static |
Definition at line 82 of file rcbPerformanceZ1.cpp.
|
static |
Definition at line 83 of file rcbPerformanceZ1.cpp.
const char param_comment = '#' |
Definition at line 86 of file rcbPerformanceZ1.cpp.