escript
Revision_
|
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 boost::shared_ptr<JMPI_> esysUtils::JMPI |
|
inline |
Appends MPI rank to a file name if MPI size > 1.
References checkResult(), ESYSUTILS_DLL_API, and shipString().
Referenced by escript::DataConstant::dump(), finley::MeshAdapter::dump(), dudley::MeshAdapter::dump(), escript::DataExpanded::dump(), escript::DataTagged::dump(), escript::load(), finley::loadMesh(), and dudley::loadMesh().
bool esysUtils::checkResult | ( | int | input, |
int & | output, | ||
const JMPI & | comm | ||
) |
References getSubWorldTag(), and MPI_INT.
Referenced by escript::SplitWorld::addJobPerWorld(), appendRankToFileName(), escript::SplitWorld::distributeJobs(), Esys_MPIInfo_noError(), and escript::SplitWorld::runJobs().
bool esysUtils::Esys_MPIInfo_noError | ( | const JMPI & | mpi_info | ) |
References checkResult(), ESYS_MPI_ERROR, Esys_noError(), and Esys_setError().
Referenced by Dudley_makePattern(), Dudley_Mesh_optimizeDOFLabeling(), Dudley_MPI_noError(), Dudley_NodeFile_gather_global(), finley::NodeFile::gather_global(), esysUtils::JMPI_::isValid(), finley::Mesh::makePattern(), finley::MPI_noError(), finley::Mesh::optimizeDOFLabeling(), paso::Preconditioner_alloc(), paso::Preconditioner_AMG_Root_alloc(), paso::Preconditioner_Smoother_alloc(), and paso::solve().
|
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().
References esysUtils::NoCOMM_WORLD::active(), and MPI_COMM_WORLD.
Referenced by dudley::brick_driver(), finley::brick_driver(), escript::SubWorld::checkRemoteCompatibility(), Dudley_Mesh_read(), Dudley_Mesh_readGmsh(), finley::loadMesh(), dudley::loadMesh(), paso::SystemMatrix::loadMM_toCSC(), paso::SystemMatrix::loadMM_toCSR(), finley::readGmsh_driver(), finley::readMesh_driver(), dudley::rectangle_driver(), finley::rectangle_driver(), ripley::RipleyDomain::RipleyDomain(), speckley::SpeckleyDomain::SpeckleyDomain(), and escript::SplitWorld::SplitWorld().
Referenced by finley::NodeFile::createDenseDOFLabeling(), finley::NodeFile::createDenseNodeLabeling(), finley::NodeFile::createDenseReducedLabeling(), Dudley_Mesh_optimizeDOFDistribution(), Dudley_Mesh_optimizeDOFLabeling(), Dudley_NodeFile_createDenseDOFLabeling(), Dudley_NodeFile_createDenseNodeLabeling(), Dudley_NodeFile_createDenseReducedDOFLabeling(), Dudley_NodeFile_createDenseReducedNodeLabeling(), Dudley_NodeFile_gather_global(), finley::NodeFile::gather_global(), esysUtils::JMPI_::isValid(), finley::Mesh::optimizeDOFDistribution(), finley::Mesh::optimizeDOFLabeling(), and finley::NodeFile::prepareLabeling().
std::ostream& esysUtils::operator<< | ( | std::ostream & | output, |
EsysException & | inException | ||
) |
Stream insertion (print) operator for EsysExceptions.
output | Input - Output stream. |
inException | Input - 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 | ||
) |
References MPI_COMM_WORLD, and omp_get_thread_num.
Referenced by escript::TestDomain::randomFill(), speckley::Rectangle::randomFill(), speckley::Brick::randomFill(), finley::MeshAdapter::randomFill(), dudley::MeshAdapter::randomFill(), ripley::Brick::randomFillWorker(), and ripley::Rectangle::randomFillWorker().
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 | ||
) |
References MPI_INT, MPI_MAX, and esysUtils::JMPI_::rank.
Referenced by escript::SplitWorld::addJobPerWorld(), appendRankToFileName(), escript::SplitWorld::distributeJobs(), and escript::SplitWorld::runJobs().
void esysUtils::ValueErrorTranslator | ( | EsysException const & | e | ) |
Function which translates an EsysException into a python ValueError.
References esysUtils::EsysException::what().
Referenced by BOOST_PYTHON_MODULE().