MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
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

namespace  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.
 
ErrorAction mfem::get_error_action ()
 Get the action MFEM takes when an error is encountered.
 
void mfem::mfem_backtrace (int mode, int depth)
 
 mfem::__attribute__ ((enzyme_inactive, noreturn)) void mfem_error(const char *msg
 Function called when an error is encountered. Used by the macros MFEM_ABORT, MFEM_ASSERT, MFEM_VERIFY.
 
 mfem::__attribute__ ((enzyme_inactive)) void mfem_warning(const char *msg
 Function called by the macro MFEM_WARNING.
 
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 159 of file error.hpp.

◆ abort_msg() [2/2]

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

Definition at line 165 of file error.hpp.