Zoltan2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Namespaces | Macros | Enumerations | Functions | Variables
GeometricGenerator.hpp File Reference
#include <Teuchos_Comm.hpp>
#include <Teuchos_ParameterList.hpp>
#include <Teuchos_FilteredIterator.hpp>
#include <Teuchos_ParameterEntry.hpp>
#include <iostream>
#include <ctime>
#include <limits>
#include <climits>
#include <string>
#include <cstdlib>
#include <sstream>
#include <fstream>
#include <Tpetra_MultiVector_decl.hpp>
#include <Zoltan2_XpetraMultiVectorAdapter.hpp>
#include <Zoltan2_PartitioningSolution.hpp>
#include <Teuchos_ArrayViewDecl.hpp>
#include <Teuchos_RCP.hpp>
#include <Tpetra_Distributor.hpp>
#include <Zoltan2_PartitioningProblem.hpp>
#include <zoltan.h>
Include dependency graph for GeometricGenerator.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GeometricGen::DOTS< tMVector_t >
 
struct  GeometricGen::CoordinatePoint< T >
 
class  GeometricGen::Hole< T >
 
class  GeometricGen::SquareHole< T >
 
class  GeometricGen::RectangleHole< T >
 
class  GeometricGen::CircleHole< T >
 
class  GeometricGen::CubeHole< T >
 
class  GeometricGen::RectangularPrismHole< T >
 
class  GeometricGen::SphereHole< T >
 
class  GeometricGen::WeightDistribution< T, weighttype >
 
class  GeometricGen::SteppedEquation< T, weighttype >
 Expression is a generic following method. More...
 
class  GeometricGen::CoordinateDistribution< T, lno_t, gno_t >
 
class  GeometricGen::CoordinateNormalDistribution< T, lno_t, gno_t >
 
class  GeometricGen::CoordinateUniformDistribution< T, lno_t, gno_t >
 
class  GeometricGen::CoordinateGridDistribution< T, lno_t, gno_t >
 
class  GeometricGen::GeometricGenerator< scalar_t, lno_t, gno_t, node_t >
 

Namespaces

 GeometricGen
 

Macros

#define CATCH_EXCEPTIONS(pp)
 
#define SHAPE_COUNT   6
 
#define DISTRIBUTION_COUNT   2
 
#define HOLE_ALLOC_STEP   10
 
#define MAX_WEIGHT_DIM   10
 
#define INVALID(STR)   "Invalid argument at " + STR
 
#define INVALIDSHAPE(STR, DIM)   "Invalid shape name " + STR + " for " + DIM + ".\nValid shapes are \"SQUARE\", \"RECTANGLE\", \"CIRCLE\" for 2D, and \"CUBE\", \"RECTANGULAR_PRISM\", \"SPHERE\" for 3D"
 
#define INVALID_SHAPE_ARG(SHAPE, REQUIRED)   "Invalid argument count for shape " + SHAPE + ". Requires " + REQUIRED + " argument(s)."
 
#define MAX_ITER_ALLOWED   500
 

Enumerations

enum  GeometricGen::shape {
  GeometricGen::SQUARE, GeometricGen::RECTANGLE, GeometricGen::CIRCLE, GeometricGen::CUBE,
  GeometricGen::RECTANGULAR_PRISM, GeometricGen::SPHERE
}
 
enum  GeometricGen::distribution { GeometricGen::normal, GeometricGen::uniform }
 

Functions

template<typename tMVector_t >
int GeometricGen::getNumObj (void *data, int *ierr)
 
template<typename tMVector_t >
void GeometricGen::getCoords (void *data, int numGid, int numLid, int numObj, ZOLTAN_ID_PTR gids, ZOLTAN_ID_PTR lids, int dim, double *coords_, int *ierr)
 
template<typename tMVector_t >
int GeometricGen::getDim (void *data, int *ierr)
 
template<typename tMVector_t >
void GeometricGen::getObjList (void *data, int numGid, int numLid, ZOLTAN_ID_PTR gids, ZOLTAN_ID_PTR lids, int num_wgts, float *obj_wgts, int *ierr)
 

Variables

const std::string GeometricGen::shapes [] = {"SQUARE", "RECTANGLE", "CIRCLE", "CUBE", "RECTANGULAR_PRISM", "SPHERE"}
 
const std::string GeometricGen::distribution [] = {"distribution", "uniform"}
 
const std::string GeometricGen::weight_distribution_string = "WeightDistribution-"
 

Macro Definition Documentation

#define CATCH_EXCEPTIONS (   pp)
Value:
catch (std::runtime_error &e) { \
std::cout << "Runtime exception returned from " << pp << ": " \
<< e.what() << " FAIL" << std::endl; \
return -1; \
} \
catch (std::logic_error &e) { \
std::cout << "Logic exception returned from " << pp << ": " \
<< e.what() << " FAIL" << std::endl; \
return -1; \
} \
catch (std::bad_alloc &e) { \
std::cout << "Bad_alloc exception returned from " << pp << ": " \
<< e.what() << " FAIL" << std::endl; \
return -1; \
} \
catch (std::exception &e) { \
std::cout << "Unknown exception returned from " << pp << ": " \
<< e.what() << " FAIL" << std::endl; \
return -1; \
}

Definition at line 82 of file GeometricGenerator.hpp.

#define SHAPE_COUNT   6

Definition at line 198 of file GeometricGenerator.hpp.

#define DISTRIBUTION_COUNT   2

Definition at line 202 of file GeometricGenerator.hpp.

#define HOLE_ALLOC_STEP   10

Definition at line 204 of file GeometricGenerator.hpp.

#define MAX_WEIGHT_DIM   10

Definition at line 205 of file GeometricGenerator.hpp.

#define INVALID (   STR)    "Invalid argument at " + STR

Definition at line 206 of file GeometricGenerator.hpp.

#define INVALIDSHAPE (   STR,
  DIM 
)    "Invalid shape name " + STR + " for " + DIM + ".\nValid shapes are \"SQUARE\", \"RECTANGLE\", \"CIRCLE\" for 2D, and \"CUBE\", \"RECTANGULAR_PRISM\", \"SPHERE\" for 3D"

Definition at line 207 of file GeometricGenerator.hpp.

#define INVALID_SHAPE_ARG (   SHAPE,
  REQUIRED 
)    "Invalid argument count for shape " + SHAPE + ". Requires " + REQUIRED + " argument(s)."

Definition at line 209 of file GeometricGenerator.hpp.

#define MAX_ITER_ALLOWED   500

Definition at line 210 of file GeometricGenerator.hpp.