25#ifndef dftefeExceptions_h
26#define dftefeExceptions_h
87#undef DFTEFE_AssertWithMsg
89#if defined(DFTEFE_DISABLE_ASSERT) || \
90 (!defined(DFTEFE_ENABLE_ASSERT) && defined(NDEBUG))
92# define DFTEFE_Assert(expr) ((void)0)
93# define DFTEFE_AssertWithMsg(expr, msg) ((void)0)
95#elif defined(DFTEFE_ENABLE_ASSERT) && defined(NDEBUG)
101# define DFTEFE_Assert(expr) assert(expr)
102# define DFTEFE_AssertWithMsg(expr, msg) \
107 std::cerr << (msg) << std::endl; \
116# define DFTEFE_Assert(expr) assert(expr)
117# define DFTEFE_AssertWithMsg(expr, msg) \
122 std::cerr << (msg) << std::endl; \
130#if defined(DFTEFE_WITH_DEVICE)
131# ifdef DFTEFE_WITH_DEVICE_LANG_CUDA
133# elif DFTEFE_WITH_DEVICE_LANG_HIP
135# elif DFTEFE_WITH_DEVICE_LANG_SYCL
std::runtime_error RuntimeError
Definition: Exceptions.h:149
std::domain_error DomainError
Definition: Exceptions.h:146
std::underflow_error UnderflowError
Definition: Exceptions.h:151
std::out_of_range OutOfRangeError
Definition: Exceptions.h:148
void throwException(bool condition, std::string msg)
Definition: Exceptions.cpp:56
std::logic_error LogicError
Definition: Exceptions.h:144
std::length_error LengthError
Definition: Exceptions.h:147
std::overflow_error OverflowError
Definition: Exceptions.h:150
std::invalid_argument InvalidArgument
Definition: Exceptions.h:145
dealii includes
Definition: AtomFieldDataSpherical.cpp:31