Zoltan2
Typedefs | Enumerations | Functions | Variables
rcbPerformanceZ1.cpp File Reference

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>
Include dependency graph for rcbPerformanceZ1.cpp:

Go to the source code of this file.

Typedefs

typedef Tpetra::MultiVector< zscalar_t, zlno_t, zgno_t, znode_ttMVector_t
 
typedef Tpetra::Map< zlno_t, zgno_t, znode_ttMap_t
 

Enumerations

Functions

string trim_right_copy (const string &s, const string &delimiters=" \f\n\r\t\v")
 
string trim_left_copy (const string &s, const string &delimiters=" \f\n\r\t\v")
 
string trim_copy (const string &s, const string &delimiters=" \f\n\r\t\v")
 
bool getArgumentValue (string &argumentid, double &argumentValue, string argumentline)
 
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_tmakeWeights (const RCP< const Teuchos::Comm< int > > &comm, zlno_t len, weightTypes how, zscalar_t scale, int rank)
 
const RCP< tMVector_tgetMeshCoordinates (const RCP< const Teuchos::Comm< int > > &comm, zgno_t numGlobalCoords)
 Create a mesh of approximately the desired size. More...
 
void getArgVals (int argc, char **argv, int &numParts, std::string &paramFile)
 
void readGeoGenParams (string paramFileName, Teuchos::ParameterList &geoparams, const RCP< const Teuchos::Comm< int > > &comm)
 
int main (int argc, char *argv[])
 

Variables

static ArrayRCP< ArrayRCP< zscalar_t > > weights
 
static RCP< tMVector_tcoordinates
 
const char param_comment = '#'
 

Detailed Description

rcbPerformance with Zoltan1

Geometry is a uniform mesh.

Todo:
get the imbalance when done

Definition in file rcbPerformanceZ1.cpp.

Typedef Documentation

typedef Tpetra::MultiVector<zscalar_t, zlno_t, zgno_t, znode_t> tMVector_t

Definition at line 82 of file rcbPerformanceZ1.cpp.

typedef Tpetra::Map<zlno_t, zgno_t, znode_t> tMap_t

Definition at line 83 of file rcbPerformanceZ1.cpp.

Enumeration Type Documentation

Enumerator
upDown 
roundRobin 
increasing 
numWeightTypes 

Definition at line 187 of file rcbPerformanceZ1.cpp.

Function Documentation

string trim_right_copy ( const string &  s,
const string &  delimiters = " \f\n\r\t\v" 
)

Definition at line 91 of file rcbPerformanceZ1.cpp.

string trim_left_copy ( const string &  s,
const string &  delimiters = " \f\n\r\t\v" 
)

Definition at line 98 of file rcbPerformanceZ1.cpp.

string trim_copy ( const string &  s,
const string &  delimiters = " \f\n\r\t\v" 
)

Definition at line 105 of file rcbPerformanceZ1.cpp.

bool getArgumentValue ( string &  argumentid,
double &  argumentValue,
string  argumentline 
)

Definition at line 113 of file rcbPerformanceZ1.cpp.

string convert_to_string ( char *  args)

Definition at line 124 of file rcbPerformanceZ1.cpp.

int getNumObj ( void *  data,
int *  ierr 
)

Definition at line 130 of file rcbPerformanceZ1.cpp.

int getDim ( void *  data,
int *  ierr 
)

Definition at line 137 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 143 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 168 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 194 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 229 of file rcbPerformanceZ1.cpp.

void getArgVals ( int  argc,
char **  argv,
int &  numParts,
std::string &  paramFile 
)

Definition at line 366 of file rcbPerformanceZ1.cpp.

void readGeoGenParams ( string  paramFileName,
Teuchos::ParameterList &  geoparams,
const RCP< const Teuchos::Comm< int > > &  comm 
)

Definition at line 396 of file rcbPerformanceZ1.cpp.

int main ( int  argc,
char *  argv[] 
)

Definition at line 449 of file rcbPerformanceZ1.cpp.

Variable Documentation

ArrayRCP<ArrayRCP<zscalar_t> > weights
static
Examples:
rcb_C.cpp.

Definition at line 85 of file rcbPerformanceZ1.cpp.

RCP<tMVector_t> coordinates
static

Definition at line 86 of file rcbPerformanceZ1.cpp.

const char param_comment = '#'

Definition at line 89 of file rcbPerformanceZ1.cpp.