escript  Revision_
Macros | Enumerations | Functions
error.h File Reference
#include "system_dep.h"
#include "types.h"
#include <stdio.h>

Go to the source code of this file.

Macros

#define LenString_MAX   FILENAME_MAX*2
 
#define LenErrorMsg_MAX   LenString_MAX
 
#define omp_get_max_threads   serial_get_max_threads
 
#define omp_get_thread_num   serial_get_thread_num
 

Enumerations

enum  Esys_ErrorCodeType {
  NO_ERROR, WARNING, DIVERGED, VALUE_ERROR,
  TYPE_ERROR, MEMORY_ERROR, IO_ERROR, ZERO_DIVISION_ERROR,
  EOF_ERROR, FLOATING_POINT_ERROR, INDEX_ERROR, OS_ERROR,
  OVERFLOW_ERROR, SYSTEM_ERROR, ESYS_MPI_ERROR, NO_PROGRESS_ERROR
}
 

Functions

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

Macro Definition Documentation

#define LenErrorMsg_MAX   LenString_MAX
#define LenString_MAX   FILENAME_MAX*2
#define omp_get_max_threads   serial_get_max_threads
#define omp_get_thread_num   serial_get_thread_num

Enumeration Type Documentation

Enumerator
NO_ERROR 
WARNING 
DIVERGED 
VALUE_ERROR 
TYPE_ERROR 
MEMORY_ERROR 
IO_ERROR 
ZERO_DIVISION_ERROR 
EOF_ERROR 
FLOATING_POINT_ERROR 
INDEX_ERROR 
OS_ERROR 
OVERFLOW_ERROR 
SYSTEM_ERROR 
ESYS_MPI_ERROR 
NO_PROGRESS_ERROR 

Function Documentation

bool Esys_checkPtr ( void *  )
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  )
int serial_get_max_threads ( void  )
int serial_get_thread_num ( void  )