ESScript  Revision_
Classes | 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

Functions

void * malloc (size_t len)
void free (void *ptr)
void * realloc (void *ptr, size_t len)
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.
std::ostream & operator<< (std::ostream &output, EsysException &inException)
 Stream insertion (print) operator for EsysExceptions.
void esysExceptionTranslator (EsysException const &e)
 Function which translates an EsysException into a python exception.
void randomFillArray (long seed, double *array, size_t n)

Function Documentation

std::string esysUtils::appendRankToFileName ( const std::string &  fileName,
int  mpiSize,
int  mpiRank 
)
inline

Appends MPI rank to a file name if MPI size > 1.

Referenced by dudley::MeshAdapter::dump(), finley::MeshAdapter::dump(), finley::loadMesh(), and dudley::loadMesh().

void esysUtils::esysExceptionTranslator ( EsysException const &  e)

Function which translates an EsysException into a python exception.

References esysUtils::EsysException::what().

Referenced by BOOST_PYTHON_MODULE().

void esysUtils::free ( void *  ptr)
inline

References ESYS_FREE.

Referenced by weipa::VisItControl::publishData().

bool esysUtils::getSplitWorld ( )
static
void* esysUtils::malloc ( size_t  len)
inline
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::randomFillArray ( long  seed,
double *  array,
size_t  n 
)
static
void* esysUtils::realloc ( void *  ptr,
size_t  len 
)
inline

References ESYS_REALLOC.

void esysUtils::splitWorld ( )