16 #ifndef dealii_exceptions_h
17 #define dealii_exceptions_h
22 #include <Kokkos_Macros.hpp>
23 #if KOKKOS_VERSION >= 40200
24 # include <Kokkos_Abort.hpp>
26 # include <Kokkos_Core.hpp>
33 #include <type_traits>
35 #ifdef DEAL_II_WITH_CUDA
36 # include <cusolverSp.h>
37 # include <cusparse.h>
91 const
char *exc_name);
98 what() const noexcept override;
158 #ifdef DEAL_II_HAVE_GLIBC_STACKTRACE
197 # define DeclException0(Exception0) \
198 class Exception0 : public ::ExceptionBase \
221 # define DeclExceptionMsg(Exception, defaulttext) \
222 class Exception : public ::ExceptionBase \
225 Exception(const std::string &msg = defaulttext) \
228 virtual ~Exception() noexcept \
231 print_info(std::ostream &out) const override \
233 out << " " << arg << std::endl; \
237 const std::string arg; \
257 # define DeclException1(Exception1, type1, outsequence) \
258 class Exception1 : public ::ExceptionBase \
261 Exception1(type1 const &a1) \
264 virtual ~Exception1() noexcept \
267 print_info(std::ostream &out) const override \
269 out << " " outsequence << std::endl; \
294 # define DeclException2(Exception2, type1, type2, outsequence) \
295 class Exception2 : public ::ExceptionBase \
298 Exception2(type1 const &a1, type2 const &a2) \
302 virtual ~Exception2() noexcept \
305 print_info(std::ostream &out) const override \
307 out << " " outsequence << std::endl; \
333 # define DeclException3(Exception3, type1, type2, type3, outsequence) \
334 class Exception3 : public ::ExceptionBase \
337 Exception3(type1 const &a1, type2 const &a2, type3 const &a3) \
342 virtual ~Exception3() noexcept \
345 print_info(std::ostream &out) const override \
347 out << " " outsequence << std::endl; \
374 # define DeclException4(Exception4, type1, type2, type3, type4, outsequence) \
375 class Exception4 : public ::ExceptionBase \
378 Exception4(type1 const &a1, \
387 virtual ~Exception4() noexcept \
390 print_info(std::ostream &out) const override \
392 out << " " outsequence << std::endl; \
420 # define DeclException5( \
421 Exception5, type1, type2, type3, type4, type5, outsequence) \
422 class Exception5 : public ::ExceptionBase \
425 Exception5(type1 const &a1, \
436 virtual ~Exception5() noexcept \
439 print_info(std::ostream &out) const override \
441 out << " " outsequence << std::endl; \
472 # define DeclException0(Exception0) \
474 static ::ExceptionBase &Exception0()
495 # define DeclExceptionMsg(Exception, defaulttext) \
498 static ::ExceptionBase &Exception()
517 # define DeclException1(Exception1, type1, outsequence) \
520 static ::ExceptionBase &Exception1(type1 arg1)
540 # define DeclException2(Exception2, type1, type2, outsequence) \
543 static ::ExceptionBase &Exception2(type1 arg1, type2 arg2)
563 # define DeclException3(Exception3, type1, type2, type3, outsequence) \
566 static ::ExceptionBase &Exception3(type1 arg1, type2 arg2, type3 arg3)
586 # define DeclException4(Exception4, type1, type2, type3, type4, outsequence) \
589 static ::ExceptionBase &Exception4(type1 arg1, \
612 # define DeclException5( \
613 Exception5, type1, type2, type3, type4, type5, outsequence) \
616 static ::ExceptionBase &Exception5( \
617 type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5)
644 "A piece of code is attempting a division by zero. This is "
645 "likely going to lead to results that make no sense.");
659 std::complex<double>,
660 <<
"In a significant number of places, deal.II checks that some intermediate "
661 <<
"value is a finite number (as opposed to plus or minus infinity, or "
662 <<
"NaN/Not a Number). In the current function, we encountered a number "
663 <<
"that is not finite (its value is " << arg1 <<
" and therefore "
664 <<
"violates the current assertion).\n\n"
665 <<
"This may be due to the fact that some operation in this function "
666 <<
"created such a value, or because one of the arguments you passed "
667 <<
"to the function already had this value from some previous "
668 <<
"operation. In the latter case, this function only triggered the "
669 <<
"error but may not actually be responsible for the computation of "
670 <<
"the number that is not finite.\n\n"
671 <<
"There are two common cases where this situation happens. First, your "
672 <<
"code (or something in deal.II) divides by zero in a place where this "
673 <<
"should not happen. Or, you are trying to solve a linear system "
674 <<
"with an unsuitable solver (such as an indefinite or non-symmetric "
675 <<
"linear system using a Conjugate Gradient solver); such attempts "
676 <<
"oftentimes yield an operation somewhere that tries to divide "
677 <<
"by zero or take the square root of a negative value.\n\n"
678 <<
"In any case, when trying to find the source of the error, "
679 <<
"recall that the location where you are getting this error is "
680 <<
"simply the first place in the program where there is a check "
681 <<
"that a number (e.g., an element of a solution vector) is in fact "
682 <<
"finite, but that the actual error that computed the number "
683 <<
"may have happened far earlier. To find this location, you "
684 <<
"may want to add checks for finiteness in places of your "
685 <<
"program visited before the place where this error is produced. "
686 <<
"One way to check for finiteness is to use the 'AssertIsFinite' "
694 "Your program tried to allocate some memory but this "
695 "allocation failed. Typically, this either means that "
696 "you simply do not have enough memory in your system, "
697 "or that you are (erroneously) trying to allocate "
698 "a chunk of memory that is simply beyond all reasonable "
699 "size, for example because the size of the object has "
700 "been computed incorrectly."
702 "In the current case, the request was for "
703 << arg1 <<
" bytes.");
711 <<
"Destroying memory handler while " << arg1
712 <<
" objects are still allocated.");
718 "An input/output error has occurred. There are a number of "
719 "reasons why this may be happening, both for reading and "
720 "writing operations."
722 "If this happens during an operation that tries to read "
723 "data: First, you may be "
724 "trying to read from a file that doesn't exist or that is "
725 "not readable given its file permissions. Second, deal.II "
726 "uses this error at times if it tries to "
727 "read information from a file but where the information "
728 "in the file does not correspond to the expected format. "
729 "An example would be a truncated file, or a mesh file "
730 "that contains not only sections that describe the "
731 "vertices and cells, but also sections for additional "
732 "data that deal.II does not understand."
734 "If this happens during an operation that tries to write "
735 "data: you may be trying to write to a file to which file "
736 "or directory permissions do not allow you to write. A "
737 "typical example is where you specify an output file in "
738 "a directory that does not exist.");
748 <<
"Could not open file " << arg1
751 "If this happens during an operation that tries to read "
753 "trying to read from a file that doesn't exist or that is "
754 "not readable given its file permissions."
756 "If this happens during an operation that tries to write "
757 "data: you may be trying to write to a file to which file "
758 "or directory permissions do not allow you to write. A "
759 "typical example is where you specify an output file in "
760 "a directory that does not exist.");
771 "You are trying to use functionality in deal.II that is "
772 "currently not implemented. In many cases, this indicates "
773 "that there simply didn't appear much of a need for it, or "
774 "that the author of the original code did not have the "
775 "time to implement a particular case. If you hit this "
776 "exception, it is therefore worth the time to look into "
777 "the code to find out whether you may be able to "
778 "implement the missing functionality. If you do, please "
779 "consider providing a patch to the deal.II development "
780 "sources (see the deal.II website on how to contribute).");
803 "This exception -- which is used in many places in the "
804 "library -- usually indicates that some condition which "
805 "the author of the code thought must be satisfied at a "
806 "certain point in an algorithm, is not fulfilled. An "
807 "example would be that the first part of an algorithm "
808 "sorts elements of an array in ascending order, and "
809 "a second part of the algorithm later encounters an "
810 "element that is not larger than the previous one."
812 "There is usually not very much you can do if you "
813 "encounter such an exception since it indicates an error "
814 "in deal.II, not in your own program. Try to come up with "
815 "the smallest possible program that still demonstrates "
816 "the error and contact the deal.II mailing lists with it "
827 "You (or a place in the library) are trying to call a "
828 "function that is declared as a virtual function in a "
829 "base class but that has not been overridden in your "
832 "This exception happens in cases where the base class "
833 "cannot provide a useful default implementation for "
834 "the virtual function, but where we also do not want "
835 "to mark the function as abstract (i.e., with '=0' at the end) "
836 "because the function is not essential to the class in many "
837 "contexts. In cases like this, the base class provides "
838 "a dummy implementation that makes the compiler happy, but "
839 "that then throws the current exception."
841 "A concrete example would be the 'Function' class. It declares "
842 "the existence of 'value()' and 'gradient()' member functions, "
843 "and both are marked as 'virtual'. Derived classes have to "
844 "override these functions for the values and gradients of a "
845 "particular function. On the other hand, not every function "
846 "has a gradient, and even for those that do, not every program "
847 "actually needs to evaluate it. Consequently, there is no "
848 "*requirement* that a derived class actually override the "
849 "'gradient()' function (as there would be had it been marked "
850 "as abstract). But, since the base class cannot know how to "
851 "compute the gradient, if a derived class does not override "
852 "the 'gradient()' function and it is called anyway, then the "
853 "default implementation in the base class will simply throw "
856 "The exception you see is what happens in cases such as the "
857 "one just illustrated. To fix the problem, you need to "
858 "investigate whether the function being called should indeed have "
859 "been called; if the answer is 'yes', then you need to "
860 "implement the missing override in your class.");
867 <<
"Please provide an implementation for the function \""
877 <<
"The function \"" << arg1 <<
"\" returned the nonzero value " << arg2
878 <<
", but the calling site expected the return value to be zero. "
879 "This error often happens when the function in question is a 'callback', "
880 "that is a user-provided function called from somewhere within deal.II "
881 "or within an external library such as PETSc, Trilinos, SUNDIALS, etc., "
882 "that expect these callbacks to indicate errors via nonzero return "
903 <<
"You are trying to execute functionality that is "
904 <<
"impossible in " << arg1
905 <<
"d or simply does not make any sense.");
917 <<
"You are trying to execute functionality that is "
918 <<
"impossible in dimensions <" << arg1 <<
',' << arg2
919 <<
"> or simply does not make any sense.");
926 "In a check in the code, deal.II encountered a zero in "
927 "a place where this does not make sense. See the condition "
928 "that was being checked and that is printed further up "
929 "in the error message to get more information on what "
930 "the erroneous zero corresponds to.");
937 "The object you are trying to access is empty but it makes "
938 "no sense to attempt the operation you are trying on an "
951 <<
"Two sizes or dimensions were supposed to be equal, "
952 <<
"but aren't. They are " << arg1 <<
" and " << arg2 <<
'.');
962 <<
"The size or dimension of one object, " << arg1
963 <<
" was supposed to be "
964 <<
"equal to one of two values, but isn't. The two possible "
965 <<
"values are " << arg2 <<
" and " << arg3 <<
'.');
984 <<
"Index " << arg1 <<
" is not in the half-open range [" << arg2 <<
','
987 " In the current case, this half-open range is in fact empty, "
988 "suggesting that you are accessing an element of an empty "
989 "collection such as a vector that has not been set to the "
1008 template <
typename T>
1014 <<
"Index " << arg1 <<
" is not in the half-open range [" << arg2 <<
','
1017 " In the current case, this half-open range is in fact empty, "
1018 "suggesting that you are accessing an element of an empty "
1019 "collection such as a vector that has not been set to the "
1029 <<
"Number " << arg1 <<
" must be larger than or equal "
1035 template <
typename T>
1039 <<
"Number " << arg1 <<
" must be larger than or equal "
1049 <<
"Division " << arg1 <<
" by " << arg2
1050 <<
" has remainder different from zero.");
1061 "You are trying to use an iterator, but the iterator is "
1062 "in an invalid state. This may indicate that the iterator "
1063 "object has not been initialized, or that it has been "
1064 "moved beyond the end of the range of valid elements.");
1071 "You are trying to use an iterator, but the iterator is "
1072 "pointing past the end of the range of valid elements. "
1073 "It is not valid to dereference the iterator in this "
1095 "You are trying an operation on a vector that is only "
1096 "allowed if the vector has no ghost elements, but the "
1097 "vector you are operating on does have ghost elements. "
1098 "Specifically, vectors with ghost elements are read-only "
1099 "and cannot appear in operations that write into these "
1102 "See the glossary entry on 'Ghosted vectors' for more "
1111 <<
"Something went wrong when making cell " << arg1
1112 <<
". Read the docs and the source code "
1113 <<
"for more information.");
1123 "You are trying an operation of the form 'vector = C', "
1124 "'matrix = C', or 'tensor = C' with a nonzero scalar value "
1125 "'C'. However, such assignments are only allowed if the "
1126 "C is zero, since the semantics for assigning any other "
1127 "value are not clear. For example: one could interpret "
1128 "assigning a matrix a value of 1 to mean the matrix has a "
1129 "norm of 1, the matrix is the identity matrix, or the "
1130 "matrix contains only 1s. Similar problems exist with "
1131 "vectors and tensors. Hence, to avoid this ambiguity, such "
1132 "assignments are not permitted.");
1139 "You are attempting to use functionality that is only available "
1140 "if deal.II was configured to use LAPACK, but cmake did not "
1141 "find a valid LAPACK library.");
1148 "You are attempting to use functionality that requires that deal.II is configured "
1149 "with HDF5 support. However, when you called 'cmake', HDF5 support "
1150 "was not detected.");
1157 "You are attempting to use functionality that is only available "
1158 "if deal.II was configured to use MPI.");
1165 "You are attempting to use functionality that is only available "
1166 "if deal.II was configured to use the function parser which "
1167 "relies on the muparser library, but cmake did not "
1168 "find a valid muparser library on your system and also did "
1169 "not choose the one that comes bundled with deal.II.");
1176 "You are attempting to use functionality that is only available "
1177 "if deal.II was configured to use Assimp, but cmake did not "
1178 "find a valid Assimp library.");
1180 #ifdef DEAL_II_WITH_CUDA
1193 <<
"There was an error in a cuSPARSE function: " << arg1);
1202 "You are attempting to use functionality that is only available if deal.II "
1203 "was configured to use Trilinos' SEACAS library (which provides ExodusII), "
1204 "but cmake did not find a valid SEACAS library.");
1211 "You are attempting to use functionality that is only available "
1212 "if deal.II was configured to use CGAL, but cmake did not "
1213 "find a valid CGAL library.");
1215 #ifdef DEAL_II_WITH_MPI
1243 print_info(std::ostream &out)
const override;
1251 #ifdef DEAL_II_TRILINOS_WITH_SEACAS
1268 ExcExodusII(
const int error_code);
1274 print_info(std::ostream &out)
const override;
1279 const int error_code;
1289 "A user call-back function encountered a recoverable error, "
1290 "but the underlying library that called the call-back did not "
1291 "manage to recover from the error and aborted its operation."
1293 "See the glossary entry on user call-back functions for more "
1431 template <
typename ExceptionType>
1436 const char *
function,
1438 const char *exc_name,
1441 static_assert(std::is_base_of_v<ExceptionBase, ExceptionType>,
1442 "The provided exception must inherit from ExceptionBase.");
1444 e.set_fields(file, line,
function, cond, exc_name);
1483 template <
typename ExceptionType>
1487 const char *
function,
1489 const char *exc_name,
1490 ExceptionType
e) noexcept
1492 static_assert(std::is_base_of_v<ExceptionBase, ExceptionType>,
1493 "The provided exception must inherit from ExceptionBase.");
1495 e.set_fields(file, line,
function, cond, exc_name);
1500 #ifdef DEAL_II_WITH_CUDA
1549 # if KOKKOS_VERSION >= 30600
1550 # ifdef DEAL_II_HAVE_BUILTIN_EXPECT
1551 # define Assert(cond, exc) \
1554 KOKKOS_IF_ON_HOST(({ \
1555 if (__builtin_expect(!(cond), false)) \
1556 ::deal_II_exceptions::internals::issue_error_noreturn( \
1557 ::deal_II_exceptions::internals::ExceptionHandling:: \
1558 abort_or_throw_on_exception, \
1561 __PRETTY_FUNCTION__, \
1566 KOKKOS_IF_ON_DEVICE(({ \
1568 Kokkos::abort(#cond); \
1573 # define Assert(cond, exc) \
1576 KOKKOS_IF_ON_HOST(({ \
1578 ::deal_II_exceptions::internals::issue_error_noreturn( \
1579 ::deal_II_exceptions::internals::ExceptionHandling:: \
1580 abort_or_throw_on_exception, \
1583 __PRETTY_FUNCTION__, \
1588 KOKKOS_IF_ON_DEVICE(({ \
1590 Kokkos::abort(#cond); \
1596 # ifdef KOKKOS_ACTIVE_EXECUTION_MEMORY_SPACE_HOST
1597 # ifdef DEAL_II_HAVE_BUILTIN_EXPECT
1598 # define Assert(cond, exc) \
1601 if (__builtin_expect(!(cond), false)) \
1602 ::deal_II_exceptions::internals::issue_error_noreturn( \
1603 ::deal_II_exceptions::internals::ExceptionHandling:: \
1604 abort_or_throw_on_exception, \
1607 __PRETTY_FUNCTION__, \
1614 # define Assert(cond, exc) \
1618 ::deal_II_exceptions::internals::issue_error_noreturn( \
1619 ::deal_II_exceptions::internals::ExceptionHandling:: \
1620 abort_or_throw_on_exception, \
1623 __PRETTY_FUNCTION__, \
1631 # define Assert(cond, exc) \
1635 Kokkos::abort(#cond); \
1641 # define Assert(cond, exc) \
1677 # ifdef DEAL_II_HAVE_BUILTIN_EXPECT
1678 # define AssertNothrow(cond, exc) \
1681 if (__builtin_expect(!(cond), false)) \
1682 ::deal_II_exceptions::internals::issue_error_nothrow( \
1683 __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc); \
1687 # define AssertNothrow(cond, exc) \
1691 ::deal_II_exceptions::internals::issue_error_nothrow( \
1692 __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc); \
1697 # define AssertNothrow(cond, exc) \
1731 #ifdef DEAL_II_HAVE_BUILTIN_EXPECT
1732 # define AssertThrow(cond, exc) \
1735 if (__builtin_expect(!(cond), false)) \
1736 ::deal_II_exceptions::internals::issue_error_noreturn( \
1737 ::deal_II_exceptions::internals::ExceptionHandling:: \
1738 throw_on_exception, \
1741 __PRETTY_FUNCTION__, \
1748 # define AssertThrow(cond, exc) \
1752 ::deal_II_exceptions::internals::issue_error_noreturn( \
1753 ::deal_II_exceptions::internals::ExceptionHandling:: \
1754 throw_on_exception, \
1757 __PRETTY_FUNCTION__, \
1775 template <
typename T,
typename U>
1779 using common_type = std::common_type_t<T, U>;
1780 return static_cast<common_type
>(t) ==
static_cast<common_type
>(u);
1789 template <
typename T,
typename U>
1793 using common_type = std::common_type_t<T, U>;
1794 return (
static_cast<common_type
>(t) <
static_cast<common_type
>(u));
1820 #define AssertDimension(dim1, dim2) \
1821 Assert(::deal_II_exceptions::internals::compare_for_equality(dim1, \
1823 ::ExcDimensionMismatch((dim1), (dim2)))
1843 #define AssertVectorVectorDimension(VEC, DIM1, DIM2) \
1844 AssertDimension(VEC.size(), DIM1); \
1845 for (const auto &subvector : VEC) \
1848 AssertDimension(subvector.size(), DIM2); \
1856 template <
typename F>
1859 template <
typename T,
typename U>
1865 template <
typename F>
1888 #define AssertIndexRange(index, range) \
1889 Assert(::deal_II_exceptions::internals::compare_less_than(index, \
1891 ExcIndexRangeType<::internal::argument_type_t<void( \
1892 std::common_type_t<decltype(index), decltype(range)>)>>((index), \
1915 #define AssertIsFinite(number) \
1916 Assert(::numbers::is_finite(number), \
1917 ::ExcNumberNotFinite(std::complex<double>(number)))
1924 #define AssertIsNotUsed(obj) Assert((obj)->used() == false, ExcInternalError())
1926 #ifdef DEAL_II_WITH_MPI
1947 # define AssertThrowMPI(error_code) \
1948 AssertThrow(error_code == MPI_SUCCESS, ::ExcMPI(error_code))
1950 # define AssertThrowMPI(error_code) \
1957 #ifdef DEAL_II_WITH_CUDA
1976 # define AssertCuda(error_code) \
1977 Assert(error_code == cudaSuccess, \
1978 ::ExcCudaError(cudaGetErrorString(error_code)))
1980 # define AssertCuda(error_code) \
1983 (void)(error_code); \
2005 # define AssertNothrowCuda(error_code) \
2006 AssertNothrow(error_code == cudaSuccess, \
2007 ::ExcCudaError(cudaGetErrorString(error_code)))
2009 # define AssertNothrowCuda(error_code) \
2012 (void)(error_code); \
2035 # define AssertCudaKernel() \
2038 cudaError_t local_error_code = cudaPeekAtLastError(); \
2039 AssertCuda(local_error_code); \
2040 local_error_code = cudaDeviceSynchronize(); \
2041 AssertCuda(local_error_code); \
2045 # define AssertCudaKernel() \
2070 # define AssertCusparse(error_code) \
2072 error_code == CUSPARSE_STATUS_SUCCESS, \
2074 deal_II_exceptions::internals::get_cusparse_error_string( \
2077 # define AssertCusparse(error_code) \
2080 (void)(error_code); \
2102 # define AssertNothrowCusparse(error_code) \
2104 error_code == CUSPARSE_STATUS_SUCCESS, \
2106 deal_II_exceptions::internals::get_cusparse_error_string( \
2109 # define AssertNothrowCusparse(error_code) \
2112 (void)(error_code); \
2135 # define AssertCusolver(error_code) \
2137 error_code == CUSOLVER_STATUS_SUCCESS, \
2139 deal_II_exceptions::internals::get_cusolver_error_string( \
2142 # define AssertCusolver(error_code) \
2145 (void)(error_code); \
2152 #ifdef DEAL_II_TRILINOS_WITH_SEACAS
2170 # define AssertThrowExodusII(error_code) \
2171 AssertThrow(error_code == 0, \
2172 ::StandardExceptions::ExcExodusII(error_code));
void generate_message() const
void print_stack_trace(std::ostream &out) const
const char * get_exc_name() const
virtual ~ExceptionBase() noexcept override=default
void set_fields(const char *file, const int line, const char *function, const char *cond, const char *exc_name)
virtual void print_info(std::ostream &out) const
virtual const char * what() const noexcept override
void print_exc_data(std::ostream &out) const
void * raw_stacktrace[25]
virtual void print_info(std::ostream &out) const override
ExcMPI(const int error_code)
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#define DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
static ::ExceptionBase & ExcImpossibleInDimSpacedim(int arg1, int arg2)
#define DeclException0(Exception0)
static ::ExceptionBase & ExcZero()
static ::ExceptionBase & ExcGridHasInvalidCell(int arg1)
static ::ExceptionBase & ExcCudaError(const char *arg1)
static ::ExceptionBase & ExcLowerRange(int arg1, int arg2)
static ::ExceptionBase & ExcDivideByZero()
static ::ExceptionBase & ExcInternalError()
static ::ExceptionBase & ExcNeedsLAPACK()
static ::ExceptionBase & ExcNumberNotFinite(std::complex< double > arg1)
static ::ExceptionBase & ExcNeedsHDF5()
static ::ExceptionBase & ExcNotInitialized()
static ::ExceptionBase & RecoverableUserCallbackError()
static ::ExceptionBase & ExcNeedsMPI()
static ::ExceptionBase & ExcFileNotOpen(std::string arg1)
static ::ExceptionBase & ExcOutOfMemory(std::size_t arg1)
static ::ExceptionBase & ExcNeedsAssimp()
static ::ExceptionBase & ExcScalarAssignmentOnlyForZeroValue()
static ::ExceptionBase & ExcPureFunctionCalled()
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
static ::ExceptionBase & ExcFunctionNonzeroReturn(std::string arg1, int arg2)
static ::ExceptionBase & ExcIteratorPastEnd()
static ::ExceptionBase & ExcInvalidIterator()
static ::ExceptionBase & ExcNotImplemented()
static ::ExceptionBase & ExcInvalidState()
static ::ExceptionBase & ExcImpossibleInDim(int arg1)
static ::ExceptionBase & ExcLowerRangeType(T arg1, T arg2)
#define DeclException2(Exception2, type1, type2, outsequence)
static ::ExceptionBase & ExcEmptyObject()
#define DeclExceptionMsg(Exception, defaulttext)
static ::ExceptionBase & ExcFunctionNotProvided(std::string arg1)
static ::ExceptionBase & ExcMemoryLeak(int arg1)
static ::ExceptionBase & ExcIndexRange(std::size_t arg1, std::size_t arg2, std::size_t arg3)
static ::ExceptionBase & ExcIO()
#define DeclException3(Exception3, type1, type2, type3, outsequence)
static ::ExceptionBase & ExcCusparseError(std::string arg1)
#define DeclException1(Exception1, type1, outsequence)
static ::ExceptionBase & ExcNeedsFunctionparser()
static ::ExceptionBase & ExcDimensionMismatch2(std::size_t arg1, std::size_t arg2, std::size_t arg3)
static ::ExceptionBase & ExcIndexRangeType(T arg1, T arg2, T arg3)
static ::ExceptionBase & ExcNeedsCGAL()
static ::ExceptionBase & ExcGhostsPresent()
static ::ExceptionBase & ExcMessage(std::string arg1)
static ::ExceptionBase & ExcNotMultiple(int arg1, int arg2)
static ::ExceptionBase & ExcNeedsExodusII()
SymmetricTensor< 2, dim, Number > e(const Tensor< 2, dim, Number > &F)
std::string get_cusolver_error_string(const cusolverStatus_t error_code)
constexpr bool compare_less_than(const T &t, const U &u)
std::string get_cusparse_error_string(const cusparseStatus_t error_code)
constexpr bool compare_for_equality(const T &t, const U &u)
void issue_error_noreturn(ExceptionHandling handling, const char *file, int line, const char *function, const char *cond, const char *exc_name, ExceptionType e)
@ abort_or_throw_on_exception
void abort(const ExceptionBase &exc) noexcept
void do_issue_error_nothrow(const ExceptionBase &e) noexcept
bool allow_abort_on_exception
void issue_error_nothrow(const char *file, int line, const char *function, const char *cond, const char *exc_name, ExceptionType e) noexcept
void enable_abort_on_exception()
void disable_abort_on_exception()
void set_additional_assert_output(const char *const p)
void suppress_stacktrace_in_exceptions()
typename argument_type< F >::type argument_type_t
#define DEAL_II_HOST_DEVICE