MFEM  v4.3.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Classes | Namespaces | Enumerations | Functions
error.hpp File Reference

Go to the source code of this file.

Classes

class  mfem::ErrorException
 Exception class thrown when MFEM encounters an error and the current ErrorAction is set to MFEM_ERROR_THROW. More...
 

Namespaces

 mfem
 

Enumerations

enum  mfem::ErrorAction { mfem::MFEM_ERROR_ABORT = 0, mfem::MFEM_ERROR_THROW }
 Action to take when MFEM encounters an error. More...
 

Functions

void mfem::set_error_action (ErrorAction action)
 Set the action MFEM takes when an error is encountered. More...
 
ErrorAction mfem::get_error_action ()
 Get the action MFEM takes when an error is encountered. More...
 
void mfem::mfem_backtrace (int mode, int depth)
 
void mfem::mfem_error (const char *msg=NULL)
 Function called when an error is encountered. Used by the macros MFEM_ABORT, MFEM_ASSERT, MFEM_VERIFY. More...
 
void mfem::mfem_warning (const char *msg=NULL)
 Function called by the macro MFEM_WARNING. More...
 
template<typename T >
__host__ void abort_msg (T &msg)
 
template<typename T >
__device__ void abort_msg (T &msg)
 

Function Documentation

template<typename T >
__host__ void abort_msg ( T &  msg)

Definition at line 154 of file error.hpp.

template<typename T >
__device__ void abort_msg ( T &  msg)

Definition at line 160 of file error.hpp.