Zoltan2
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Enumerations | Functions | Variables
scaling/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 <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
 

Macros

#define MEMORY_CHECK(iPrint, msg)
 

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 ,
  upDown , roundRobin , increasing , numWeightTypes ,
  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.

Macro Definition Documentation

◆ MEMORY_CHECK

#define MEMORY_CHECK (   iPrint,
  msg 
)
Value:
if (iPrint){ \
std::cout.width(10); \
std::cout.fill('*'); \
std::cout << kb << " KB, " << msg << std::endl; \
std::cout.width(0); \
std::cout.fill(' '); \
}
long getProcessKilobytes()

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

Typedef Documentation

◆ tMVector_t

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

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

◆ tMap_t

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

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

◆ znode_t

typedef tMap_t::node_type znode_t

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

◆ DOTS

typedef struct dots DOTS

Enumeration Type Documentation

◆ weightTypes

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

Definition at line 273 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 105 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 112 of file scaling/rcbPerformanceZ1.cpp.

◆ trim_copy()

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

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

◆ readGeoGenParams()

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

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

◆ getNumObj()

int getNumObj ( void *  data,
int *  ierr 
)

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

◆ getDim()

int getDim ( void *  data,
int *  ierr 
)

Definition at line 201 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 211 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 237 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 280 of file scaling/rcbPerformanceZ1.cpp.

◆ makeMeshCoordinates()

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

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

◆ main()

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

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

Variable Documentation

◆ param_comment

const char param_comment = '#'

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