escript  Revision_
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
 
class  JMPI_
 
class  NoCOMM_WORLD
 

Typedefs

typedef boost::shared_ptr< JMPI_JMPI
 

Functions

JMPI makeInfo (MPI_Comm comm, bool owncom)
 
int getSubWorldTag ()
 tag reserved for use by SubWorld code this value should be higher than the modulus used in JMPI_::setCounter, apart from that, its value is not particularly significant. More...
 
bool Esys_MPIInfo_noError (const JMPI &mpi_info)
 
index_t mod_rank (index_t n, index_t k)
 
std::string appendRankToFileName (const std::string &fileName, int mpiSize, int mpiRank)
 Appends MPI rank to a file name if MPI size > 1. More...
 
bool shipString (const char *src, char **dest, MPI_Comm &comm)
 
bool checkResult (int input, int &output, const JMPI &comm)
 
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 boost::shared_ptr<JMPI_> esysUtils::JMPI

Function Documentation

std::string esysUtils::appendRankToFileName ( const std::string &  fileName,
int  mpiSize,
int  mpiRank 
)
inline
bool esysUtils::checkResult ( int  input,
int &  output,
const JMPI comm 
)
bool esysUtils::Esys_MPIInfo_noError ( const JMPI mpi_info)
int esysUtils::getSubWorldTag ( )
inline

tag reserved for use by SubWorld code this value should be higher than the modulus used in JMPI_::setCounter, apart from that, its value is not particularly significant.

Referenced by checkResult().

JMPI esysUtils::makeInfo ( MPI_Comm  comm,
bool  owncom 
)
index_t esysUtils::mod_rank ( index_t  n,
index_t  k 
)
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().

bool esysUtils::shipString ( const char *  src,
char **  dest,
MPI_Comm comm 
)
void esysUtils::ValueErrorTranslator ( EsysException const &  e)

Function which translates an EsysException into a python ValueError.

References esysUtils::EsysException::what().

Referenced by BOOST_PYTHON_MODULE().