Zoltan2
Loading...
Searching...
No Matches
rcbPerformanceZ1.cpp File Reference

rcbPerformance with Zoltan1 More...

#include "Zoltan2_config.h"
#include <zoltan.h>
#include <Zoltan2_Util.hpp>
#include <Teuchos_RCP.hpp>
#include <Teuchos_ArrayView.hpp>
#include <Teuchos_ParameterList.hpp>
#include <Teuchos_DefaultComm.hpp>
#include <Teuchos_Comm.hpp>
#include <Teuchos_CommHelpers.hpp>
#include <Zoltan2_TestHelpers.hpp>
#include <Tpetra_MultiVector.hpp>
#include <Tpetra_KokkosCompat_DefaultNode.hpp>
#include <GeometricGenerator.hpp>
#include <vector>
#include <string>
#include <ostream>
#include <sstream>
#include <fstream>
Include dependency graph for scaling/rcbPerformanceZ1.cpp:

Go to the source code of this file.

Classes

struct  dots

Typedefs

typedef Tpetra::MultiVector< zscalar_t, zlno_t, zgno_t, znode_ttMVector_t
typedef Tpetra::Map< zlno_t, zgno_t, znode_ttMap_t
typedef tMap_t::node_type znode_t
typedef struct dots DOTS

Enumerations

enum  weightTypes { upDown , roundRobin , increasing , numWeightTypes }

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")
void readGeoGenParams (string paramFileName, Teuchos::ParameterList &geoparams, const RCP< const Teuchos::Comm< int > > &comm)
int getNumObj (void *data, int *ierr)
int getDim (void *data, int *ierr)
void getObjList (void *data, int numGid, int numLid, ZOLTAN_ID_PTR gids, ZOLTAN_ID_PTR lids, int num_wgts, float *obj_wgts, int *ierr)
void getCoords (void *data, int numGid, int numLid, int numObj, ZOLTAN_ID_PTR gids, ZOLTAN_ID_PTR lids, int dim, double *coords, int *ierr)
void makeWeights (const RCP< const Teuchos::Comm< int > > &comm, vector< float > &wgts, weightTypes how, float scale, int rank)
tMVector_tmakeMeshCoordinates (const RCP< const Teuchos::Comm< int > > &comm, zgno_t numGlobalCoords)
int main (int narg, char *arg[])

Variables

const char param_comment = '#'

Detailed Description

rcbPerformance with Zoltan1

Geometry is a uniform mesh.

Definition in file scaling/rcbPerformanceZ1.cpp.

Typedef Documentation

◆ tMVector_t

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

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

◆ tMap_t

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

Definition at line 48 of file scaling/rcbPerformanceZ1.cpp.

◆ znode_t

typedef tMap_t::node_type znode_t

Definition at line 49 of file scaling/rcbPerformanceZ1.cpp.

◆ DOTS

typedef struct dots DOTS

Enumeration Type Documentation

◆ weightTypes

Enumerator
upDown 
roundRobin 
increasing 
numWeightTypes 

Definition at line 228 of file scaling/rcbPerformanceZ1.cpp.

Function Documentation

◆ trim_right_copy()

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

Definition at line 60 of file scaling/rcbPerformanceZ1.cpp.

◆ trim_left_copy()

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

Definition at line 67 of file scaling/rcbPerformanceZ1.cpp.

◆ trim_copy()

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

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

◆ readGeoGenParams()

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

Definition at line 81 of file scaling/rcbPerformanceZ1.cpp.

◆ getNumObj()

int getNumObj ( void * data,
int * ierr )

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

◆ getDim()

int getDim ( void * data,
int * ierr )

Definition at line 156 of file scaling/rcbPerformanceZ1.cpp.

◆ getObjList()

void getObjList ( void * data,
int numGid,
int numLid,
ZOLTAN_ID_PTR gids,
ZOLTAN_ID_PTR lids,
int num_wgts,
float * obj_wgts,
int * ierr )

Definition at line 166 of file scaling/rcbPerformanceZ1.cpp.

◆ getCoords()

void getCoords ( void * data,
int numGid,
int numLid,
int numObj,
ZOLTAN_ID_PTR gids,
ZOLTAN_ID_PTR lids,
int dim,
double * coords,
int * ierr )

Definition at line 192 of file scaling/rcbPerformanceZ1.cpp.

◆ makeWeights()

void makeWeights ( const RCP< const Teuchos::Comm< int > > & comm,
vector< float > & wgts,
weightTypes how,
float scale,
int rank )

Definition at line 235 of file scaling/rcbPerformanceZ1.cpp.

◆ makeMeshCoordinates()

tMVector_t * makeMeshCoordinates ( const RCP< const Teuchos::Comm< int > > & comm,
zgno_t numGlobalCoords )

Definition at line 264 of file scaling/rcbPerformanceZ1.cpp.

◆ main()

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

Definition at line 390 of file scaling/rcbPerformanceZ1.cpp.

Variable Documentation

◆ param_comment

const char param_comment = '#'

Definition at line 58 of file scaling/rcbPerformanceZ1.cpp.