Zoltan2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Typedefs | Enumerations | Functions | Variables
partition/rcbPerformanceZ1.cpp File Reference
#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 partition/rcbPerformanceZ1.cpp:

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_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 narg, char **arg, int &numParts, std::string &paramFile)
 
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_tcoordinates
 
const char param_comment = '#'
 

Typedef Documentation

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

Definition at line 43 of file partition/rcbPerformanceZ1.cpp.

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

Definition at line 44 of file partition/rcbPerformanceZ1.cpp.

Enumeration Type Documentation

Enumerator
upDown 
roundRobin 
increasing 
numWeightTypes 
upDown 
roundRobin 
increasing 
numWeightTypes 
upDown 
roundRobin 
increasing 
numWeightTypes 

Definition at line 148 of file partition/rcbPerformanceZ1.cpp.

Function Documentation

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.

Variable Documentation

ArrayRCP<ArrayRCP<zscalar_t> > weights
static
Examples:
kokkosBlock.cpp, and rcb_C.cpp.

Definition at line 46 of file partition/rcbPerformanceZ1.cpp.

RCP<tMVector_t> coordinates
static

Definition at line 47 of file partition/rcbPerformanceZ1.cpp.

const char param_comment = '#'

Definition at line 50 of file partition/rcbPerformanceZ1.cpp.