MFEM  v4.5.2
Finite element discretization library
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

◆ abort_msg() [1/2]

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

Definition at line 158 of file error.hpp.

◆ abort_msg() [2/2]

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

Definition at line 164 of file error.hpp.