escript  Revision_4925
Classes | Typedefs | Functions
esysUtils Namespace Reference

Classes

class  EsysAssertException
 EsysAssertException exception class. More...
 
class  EsysException
 A base class for exception classes used within Esys system. More...
 
class  FileWriter
 
struct  IndexList
 

Typedefs

typedef std::vector< IndexListIndexListArray
 

Functions

bool getSplitWorld ()
 
void splitWorld ()
 
std::string appendRankToFileName (const std::string &fileName, int mpiSize, int mpiRank)
 Appends MPI rank to a file name if MPI size > 1. More...
 
std::ostream & operator<< (std::ostream &output, EsysException &inException)
 Stream insertion (print) operator for EsysExceptions. More...
 
void RuntimeErrorTranslator (EsysException const &e)
 Function which translates an EsysException into a python RuntimeError. More...
 
void ValueErrorTranslator (EsysException const &e)
 Function which translates an EsysException into a python ValueError. More...
 
void randomFillArray (long seed, double *array, size_t n)
 
void patternFillArray2D (size_t x, size_t y, double *array, size_t spacing, size_t basex, size_t basey, size_t numpoints)
 
void patternFillArray (int pattern, size_t x, size_t y, size_t z, double *array, size_t spacing, size_t basex, size_t basey, size_t basez, size_t numpoints)
 

Typedef Documentation

typedef std::vector<IndexList> esysUtils::IndexListArray

Function Documentation

std::string esysUtils::appendRankToFileName ( const std::string &  fileName,
int  mpiSize,
int  mpiRank 
)
inline
bool esysUtils::getSplitWorld ( )
std::ostream& esysUtils::operator<< ( std::ostream &  output,
EsysException inException 
)

Stream insertion (print) operator for EsysExceptions.

Parameters
outputInput - Output stream.
inExceptionInput - The exception to be inserted into the output stream.

References esysUtils::EsysException::toString().

void esysUtils::patternFillArray ( int  pattern,
size_t  x,
size_t  y,
size_t  z,
double *  array,
size_t  spacing,
size_t  basex,
size_t  basey,
size_t  basez,
size_t  numpoints 
)
void esysUtils::patternFillArray2D ( size_t  x,
size_t  y,
double *  array,
size_t  spacing,
size_t  basex,
size_t  basey,
size_t  numpoints 
)
void esysUtils::randomFillArray ( long  seed,
double *  array,
size_t  n 
)
void esysUtils::RuntimeErrorTranslator ( EsysException const &  e)

Function which translates an EsysException into a python RuntimeError.

References esysUtils::EsysException::what().

Referenced by BOOST_PYTHON_MODULE().

void esysUtils::splitWorld ( )
void esysUtils::ValueErrorTranslator ( EsysException const &  e)

Function which translates an EsysException into a python ValueError.

References esysUtils::EsysException::what().

Referenced by BOOST_PYTHON_MODULE().