escript  Revision_
Macros | Functions | Variables
error.cpp File Reference
#include "error.h"
#include "Esys_MPI.h"
#include <string.h>
#include <time.h>

Macros

#define MIN(X, Y)   ((X)<(Y)?(X):(Y))
 

Functions

void Esys_resetError (void)
 
void Esys_setError (Esys_ErrorCodeType err, __const char *msg)
 
bool Esys_noError (void)
 
bool Esys_checkPtr (void *ptr)
 
double Esys_timer (void)
 
Esys_ErrorCodeType Esys_getErrorType (void)
 
char * Esys_getErrorMessage (void)
 

Variables

Esys_ErrorCodeType Esys_ErrorCode_ =NO_ERROR
 
char Esys_ErrorMsg_ [FILENAME_MAX *2] ={'\0'}
 

Macro Definition Documentation

#define MIN (   X,
 
)    ((X)<(Y)?(X):(Y))

Function Documentation

bool Esys_checkPtr ( void *  ptr)
char* Esys_getErrorMessage ( void  )
Esys_ErrorCodeType Esys_getErrorType ( void  )
bool Esys_noError ( void  )

References Esys_getErrorType(), and NO_ERROR.

Referenced by finley::Assemble_CopyNodalData(), paso::SystemMatrix::balance(), paso::Pattern::borrowColoringPointer(), paso::checkPasoError(), dudley::checkPasoError(), Dudley_Assemble_CopyNodalData(), Dudley_noError(), esysUtils::Esys_MPIInfo_noError(), Esys_setError(), paso::Pattern::fromIndexListArray(), paso::FCT_Solver::getSafeTimeStepSize(), paso::TransportProblem::getSafeTimeStepSize(), paso::SparseMatrix::getSubmatrix(), paso::Pattern::getSubpattern(), paso::SparseMatrix::invMain(), paso::MKL_solve(), finley::noError(), paso::Performance_close(), paso::Performance_open(), paso::Preconditioner_alloc(), paso::Preconditioner_AMG_alloc(), paso::Preconditioner_AMG_buildInterpolationOperator(), paso::Preconditioner_AMG_buildInterpolationOperatorBlock(), paso::Preconditioner_AMG_getProlongation(), paso::Preconditioner_AMG_getRestriction(), paso::Preconditioner_AMG_Root_alloc(), paso::Preconditioner_LocalAMG_alloc(), paso::Preconditioner_LocalAMG_getProlongation(), paso::Preconditioner_LocalAMG_RungeStuebenSearch(), paso::Preconditioner_LocalSmoother_alloc(), paso::RHS_loadMM_toCSR(), paso::solve(), paso::TransportProblem::solve(), paso::Solver(), paso::Solver_getILU(), paso::Solver_getRILU(), paso::SparseMatrix::SparseMatrix(), paso::SparseMatrix_MatrixMatrix(), paso::SparseMatrix_MatrixMatrixTranspose(), paso::SystemMatrix::SystemMatrix(), paso::SystemMatrix_MatrixVector(), paso::TransportProblem::TransportProblem(), paso::SparseMatrix::unroll(), paso::Connector::unroll(), paso::Pattern::unrollBlocks(), paso::SystemMatrixPattern::unrollBlocks(), and paso::FCT_Solver::updateNL().

void Esys_resetError ( void  )
void Esys_setError ( Esys_ErrorCodeType  err,
__const char *  msg 
)

References Esys_ErrorCode_, Esys_ErrorMsg_, Esys_noError(), LenErrorMsg_MAX, and MIN.

Referenced by paso::SystemMatrix::balance(), paso::BlockOps_solveAll(), paso::SystemMatrix::borrowMainDiagonalPointer(), paso::Connector::Connector(), paso::SystemMatrix::copyColCoupleBlock(), Dudley_setError(), Esys_checkPtr(), Esys_MPIInfo_initialized(), esysUtils::Esys_MPIInfo_noError(), paso::FCT_Solver::FCT_Solver(), paso::Coupler::finishCollect(), paso::SparseMatrix::getBlock(), paso::Options::getPackage(), paso::TransportProblem::getSafeTimeStepSize(), paso::Options::getSolver(), paso::SparseMatrix::getSubmatrix(), paso::SystemMatrix::getSystemMatrixTypeId(), paso::SparseMatrix::invMain(), esysUtils::JMPI_::JMPI_(), paso::SystemMatrix::loadMM_toCSC(), paso::SparseMatrix::loadMM_toCSR(), paso::SystemMatrix::loadMM_toCSR(), paso::SystemMatrix::mergeMainAndCouple(), paso::SystemMatrix::mergeMainAndCouple_CSC_OFFSET1(), paso::SystemMatrix::mergeMainAndCouple_CSR_OFFSET0(), paso::SystemMatrix::mergeMainAndCouple_CSR_OFFSET0_Block(), paso::Pattern::mis(), paso::MKL_free(), paso::MKL_solve(), paso::SystemMatrix::nullifyRows(), paso::SystemMatrix::nullifyRowsAndCols(), paso::Pattern::Pattern(), paso::Performance_open(), paso::Preconditioner_AMG_CIJPCoarsening(), paso::Preconditioner_AMG_extendB(), paso::Preconditioner_AMG_setClassicProlongation(), paso::Preconditioner_AMG_setClassicProlongation_Block(), paso::Preconditioner_LocalAMG_setClassicProlongation(), paso::Preconditioner_LocalAMG_setClassicProlongation_Block(), paso::Preconditioner_LocalSmoother_Sweep_colored(), paso::Preconditioner_LocalSmoother_Sweep_sequential(), paso::Pattern::reduceBandwidth(), paso::RHS_loadMM_toCSR(), paso::SystemMatrix::rowSum(), paso::SystemMatrix::saveHB(), paso::SparseMatrix::saveHB_CSC(), paso::SparseMatrix::saveMM(), paso::SystemMatrix::saveMM(), finley::setError(), paso::TransportProblem::setUpConstraint(), paso::solve(), paso::TransportProblem::solve(), paso::Solver(), paso::Solver_getILU(), paso::Solver_getRILU(), paso::SparseMatrix::SparseMatrix(), paso::SparseMatrix_MatrixMatrix(), paso::SparseMatrix_MatrixMatrixTranspose(), paso::Coupler::startCollect(), paso::SystemMatrix::SystemMatrix(), paso::SystemMatrix_MatrixVector(), paso::SystemMatrixPattern::SystemMatrixPattern(), and paso::UMFPACK_solve().

double Esys_timer ( void  )

Variable Documentation

Esys_ErrorCodeType Esys_ErrorCode_ =NO_ERROR
char Esys_ErrorMsg_[FILENAME_MAX *2] ={'\0'}