Zoltan2
Loading...
Searching...
No Matches
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 partition/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

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_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.
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 = '#'

Detailed Description

rcbPerformance with Zoltan1

Geometry is a uniform mesh.

Todo
get the imbalance when done

Definition in file partition/rcbPerformanceZ1.cpp.

Typedef Documentation

◆ tMVector_t

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

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

◆ tMap_t

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

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

Enumeration Type Documentation

◆ weightTypes

Enumerator
upDown 
roundRobin 
increasing 
numWeightTypes 

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

Function Documentation

◆ trim_right_copy()

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.

◆ trim_left_copy()

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.

◆ trim_copy()

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.

◆ getArgumentValue()

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

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

◆ convert_to_string()

std::string convert_to_string ( char * args)

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

◆ getNumObj()

int getNumObj ( void * data,
int * ierr )

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

◆ getDim()

int getDim ( void * data,
int * ierr )

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

◆ getObjList()

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.

◆ getCoords()

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.

◆ makeWeights()

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.

◆ getMeshCoordinates()

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.

◆ getArgVals()

void getArgVals ( int narg,
char ** arg,
int & numParts,
std::string & paramFile )

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

◆ readGeoGenParams()

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

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

◆ main()

int main ( int narg,
char * arg[] )

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

Variable Documentation

◆ weights

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

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

◆ coordinates

RCP<tMVector_t> coordinates
static

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

◆ param_comment

const char param_comment = '#'

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