16 #ifndef dealii_exceptions_h
17 #define dealii_exceptions_h
22 #include <Kokkos_Core.hpp>
28 #include <type_traits>
30 #ifdef DEAL_II_WITH_CUDA
31 # include <cusolverSp.h>
32 # include <cusparse.h>
86 const
char *exc_name);
93 what() const noexcept override;
153 #ifdef DEAL_II_HAVE_GLIBC_STACKTRACE
192 # define DeclException0(Exception0) \
193 class Exception0 : public ::ExceptionBase \
216 # define DeclExceptionMsg(Exception, defaulttext) \
217 class Exception : public ::ExceptionBase \
220 Exception(const std::string &msg = defaulttext) \
223 virtual ~Exception() noexcept \
226 print_info(std::ostream &out) const override \
228 out << " " << arg << std::endl; \
232 const std::string arg; \
252 # define DeclException1(Exception1, type1, outsequence) \
253 class Exception1 : public ::ExceptionBase \
256 Exception1(type1 const &a1) \
259 virtual ~Exception1() noexcept \
262 print_info(std::ostream &out) const override \
264 out << " " outsequence << std::endl; \
289 # define DeclException2(Exception2, type1, type2, outsequence) \
290 class Exception2 : public ::ExceptionBase \
293 Exception2(type1 const &a1, type2 const &a2) \
297 virtual ~Exception2() noexcept \
300 print_info(std::ostream &out) const override \
302 out << " " outsequence << std::endl; \
328 # define DeclException3(Exception3, type1, type2, type3, outsequence) \
329 class Exception3 : public ::ExceptionBase \
332 Exception3(type1 const &a1, type2 const &a2, type3 const &a3) \
337 virtual ~Exception3() noexcept \
340 print_info(std::ostream &out) const override \
342 out << " " outsequence << std::endl; \
369 # define DeclException4(Exception4, type1, type2, type3, type4, outsequence) \
370 class Exception4 : public ::ExceptionBase \
373 Exception4(type1 const &a1, \
382 virtual ~Exception4() noexcept \
385 print_info(std::ostream &out) const override \
387 out << " " outsequence << std::endl; \
415 # define DeclException5( \
416 Exception5, type1, type2, type3, type4, type5, outsequence) \
417 class Exception5 : public ::ExceptionBase \
420 Exception5(type1 const &a1, \
431 virtual ~Exception5() noexcept \
434 print_info(std::ostream &out) const override \
436 out << " " outsequence << std::endl; \
467 # define DeclException0(Exception0) \
469 static ::ExceptionBase &Exception0()
490 # define DeclExceptionMsg(Exception, defaulttext) \
493 static ::ExceptionBase &Exception()
512 # define DeclException1(Exception1, type1, outsequence) \
515 static ::ExceptionBase &Exception1(type1 arg1)
535 # define DeclException2(Exception2, type1, type2, outsequence) \
538 static ::ExceptionBase &Exception2(type1 arg1, type2 arg2)
558 # define DeclException3(Exception3, type1, type2, type3, outsequence) \
561 static ::ExceptionBase &Exception3(type1 arg1, type2 arg2, type3 arg3)
581 # define DeclException4(Exception4, type1, type2, type3, type4, outsequence) \
584 static ::ExceptionBase &Exception4(type1 arg1, \
607 # define DeclException5( \
608 Exception5, type1, type2, type3, type4, type5, outsequence) \
611 static ::ExceptionBase &Exception5( \
612 type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5)
639 "A piece of code is attempting a division by zero. This is "
640 "likely going to lead to results that make no sense.");
654 std::complex<double>,
655 <<
"In a significant number of places, deal.II checks that some intermediate "
656 <<
"value is a finite number (as opposed to plus or minus infinity, or "
657 <<
"NaN/Not a Number). In the current function, we encountered a number "
658 <<
"that is not finite (its value is " << arg1 <<
" and therefore "
659 <<
"violates the current assertion).\n\n"
660 <<
"This may be due to the fact that some operation in this function "
661 <<
"created such a value, or because one of the arguments you passed "
662 <<
"to the function already had this value from some previous "
663 <<
"operation. In the latter case, this function only triggered the "
664 <<
"error but may not actually be responsible for the computation of "
665 <<
"the number that is not finite.\n\n"
666 <<
"There are two common cases where this situation happens. First, your "
667 <<
"code (or something in deal.II) divides by zero in a place where this "
668 <<
"should not happen. Or, you are trying to solve a linear system "
669 <<
"with an unsuitable solver (such as an indefinite or non-symmetric "
670 <<
"linear system using a Conjugate Gradient solver); such attempts "
671 <<
"oftentimes yield an operation somewhere that tries to divide "
672 <<
"by zero or take the square root of a negative value.\n\n"
673 <<
"In any case, when trying to find the source of the error, "
674 <<
"recall that the location where you are getting this error is "
675 <<
"simply the first place in the program where there is a check "
676 <<
"that a number (e.g., an element of a solution vector) is in fact "
677 <<
"finite, but that the actual error that computed the number "
678 <<
"may have happened far earlier. To find this location, you "
679 <<
"may want to add checks for finiteness in places of your "
680 <<
"program visited before the place where this error is produced. "
681 <<
"One way to check for finiteness is to use the 'AssertIsFinite' "
689 "Your program tried to allocate some memory but this "
690 "allocation failed. Typically, this either means that "
691 "you simply do not have enough memory in your system, "
692 "or that you are (erroneously) trying to allocate "
693 "a chunk of memory that is simply beyond all reasonable "
694 "size, for example because the size of the object has "
695 "been computed incorrectly."
697 "In the current case, the request was for "
698 << arg1 <<
" bytes.");
706 <<
"Destroying memory handler while " << arg1
707 <<
" objects are still allocated.");
713 "An input/output error has occurred. There are a number of "
714 "reasons why this may be happening, both for reading and "
715 "writing operations."
717 "If this happens during an operation that tries to read "
718 "data: First, you may be "
719 "trying to read from a file that doesn't exist or that is "
720 "not readable given its file permissions. Second, deal.II "
721 "uses this error at times if it tries to "
722 "read information from a file but where the information "
723 "in the file does not correspond to the expected format. "
724 "An example would be a truncated file, or a mesh file "
725 "that contains not only sections that describe the "
726 "vertices and cells, but also sections for additional "
727 "data that deal.II does not understand."
729 "If this happens during an operation that tries to write "
730 "data: you may be trying to write to a file to which file "
731 "or directory permissions do not allow you to write. A "
732 "typical example is where you specify an output file in "
733 "a directory that does not exist.");
743 <<
"Could not open file " << arg1
746 "If this happens during an operation that tries to read "
748 "trying to read from a file that doesn't exist or that is "
749 "not readable given its file permissions."
751 "If this happens during an operation that tries to write "
752 "data: you may be trying to write to a file to which file "
753 "or directory permissions do not allow you to write. A "
754 "typical example is where you specify an output file in "
755 "a directory that does not exist.");
766 "You are trying to use functionality in deal.II that is "
767 "currently not implemented. In many cases, this indicates "
768 "that there simply didn't appear much of a need for it, or "
769 "that the author of the original code did not have the "
770 "time to implement a particular case. If you hit this "
771 "exception, it is therefore worth the time to look into "
772 "the code to find out whether you may be able to "
773 "implement the missing functionality. If you do, please "
774 "consider providing a patch to the deal.II development "
775 "sources (see the deal.II website on how to contribute).");
798 "This exception -- which is used in many places in the "
799 "library -- usually indicates that some condition which "
800 "the author of the code thought must be satisfied at a "
801 "certain point in an algorithm, is not fulfilled. An "
802 "example would be that the first part of an algorithm "
803 "sorts elements of an array in ascending order, and "
804 "a second part of the algorithm later encounters an "
805 "element that is not larger than the previous one."
807 "There is usually not very much you can do if you "
808 "encounter such an exception since it indicates an error "
809 "in deal.II, not in your own program. Try to come up with "
810 "the smallest possible program that still demonstrates "
811 "the error and contact the deal.II mailing lists with it "
822 "You (or a place in the library) are trying to call a "
823 "function that is declared as a virtual function in a "
824 "base class but that has not been overridden in your "
827 "This exception happens in cases where the base class "
828 "cannot provide a useful default implementation for "
829 "the virtual function, but where we also do not want "
830 "to mark the function as abstract (i.e., with '=0' at the end) "
831 "because the function is not essential to the class in many "
832 "contexts. In cases like this, the base class provides "
833 "a dummy implementation that makes the compiler happy, but "
834 "that then throws the current exception."
836 "A concrete example would be the 'Function' class. It declares "
837 "the existence of 'value()' and 'gradient()' member functions, "
838 "and both are marked as 'virtual'. Derived classes have to "
839 "override these functions for the values and gradients of a "
840 "particular function. On the other hand, not every function "
841 "has a gradient, and even for those that do, not every program "
842 "actually needs to evaluate it. Consequently, there is no "
843 "*requirement* that a derived class actually override the "
844 "'gradient()' function (as there would be had it been marked "
845 "as abstract). But, since the base class cannot know how to "
846 "compute the gradient, if a derived class does not override "
847 "the 'gradient()' function and it is called anyway, then the "
848 "default implementation in the base class will simply throw "
851 "The exception you see is what happens in cases such as the "
852 "one just illustrated. To fix the problem, you need to "
853 "investigate whether the function being called should indeed have "
854 "been called; if the answer is 'yes', then you need to "
855 "implement the missing override in your class.");
862 <<
"Please provide an implementation for the function \""
872 <<
"The function \"" << arg1 <<
"\" returned the nonzero value " << arg2
873 <<
", but the calling site expected the return value to be zero. "
874 "This error often happens when the function in question is a 'callback', "
875 "that is a user-provided function called from somewhere within deal.II "
876 "or within an external library such as PETSc, Trilinos, SUNDIALS, etc., "
877 "that expect these callbacks to indicate errors via nonzero return "
898 <<
"You are trying to execute functionality that is "
899 <<
"impossible in " << arg1
900 <<
"d or simply does not make any sense.");
912 <<
"You are trying to execute functionality that is "
913 <<
"impossible in dimensions <" << arg1 <<
',' << arg2
914 <<
"> or simply does not make any sense.");
921 "In a check in the code, deal.II encountered a zero in "
922 "a place where this does not make sense. See the condition "
923 "that was being checked and that is printed further up "
924 "in the error message to get more information on what "
925 "the erroneous zero corresponds to.");
932 "The object you are trying to access is empty but it makes "
933 "no sense to attempt the operation you are trying on an "
946 <<
"Two sizes or dimensions were supposed to be equal, "
947 <<
"but aren't. They are " << arg1 <<
" and " << arg2 <<
'.');
957 <<
"The size or dimension of one object, " << arg1
958 <<
" was supposed to be "
959 <<
"equal to one of two values, but isn't. The two possible "
960 <<
"values are " << arg2 <<
" and " << arg3 <<
'.');
979 <<
"Index " << arg1 <<
" is not in the half-open range [" << arg2 <<
','
982 " In the current case, this half-open range is in fact empty, "
983 "suggesting that you are accessing an element of an empty "
984 "collection such as a vector that has not been set to the "
1003 template <
typename T>
1009 <<
"Index " << arg1 <<
" is not in the half-open range [" << arg2 <<
','
1012 " In the current case, this half-open range is in fact empty, "
1013 "suggesting that you are accessing an element of an empty "
1014 "collection such as a vector that has not been set to the "
1024 <<
"Number " << arg1 <<
" must be larger than or equal "
1030 template <
typename T>
1034 <<
"Number " << arg1 <<
" must be larger than or equal "
1044 <<
"Division " << arg1 <<
" by " << arg2
1045 <<
" has remainder different from zero.");
1056 "You are trying to use an iterator, but the iterator is "
1057 "in an invalid state. This may indicate that the iterator "
1058 "object has not been initialized, or that it has been "
1059 "moved beyond the end of the range of valid elements.");
1066 "You are trying to use an iterator, but the iterator is "
1067 "pointing past the end of the range of valid elements. "
1068 "It is not valid to dereference the iterator in this "
1090 "You are trying an operation on a vector that is only "
1091 "allowed if the vector has no ghost elements, but the "
1092 "vector you are operating on does have ghost elements. "
1093 "Specifically, vectors with ghost elements are read-only "
1094 "and cannot appear in operations that write into these "
1097 "See the glossary entry on 'Ghosted vectors' for more "
1106 <<
"Something went wrong when making cell " << arg1
1107 <<
". Read the docs and the source code "
1108 <<
"for more information.");
1118 "You are trying an operation of the form 'vector = C', "
1119 "'matrix = C', or 'tensor = C' with a nonzero scalar value "
1120 "'C'. However, such assignments are only allowed if the "
1121 "C is zero, since the semantics for assigning any other "
1122 "value are not clear. For example: one could interpret "
1123 "assigning a matrix a value of 1 to mean the matrix has a "
1124 "norm of 1, the matrix is the identity matrix, or the "
1125 "matrix contains only 1s. Similar problems exist with "
1126 "vectors and tensors. Hence, to avoid this ambiguity, such "
1127 "assignments are not permitted.");
1134 "You are attempting to use functionality that is only available "
1135 "if deal.II was configured to use LAPACK, but cmake did not "
1136 "find a valid LAPACK library.");
1143 "You are attempting to use functionality that requires that deal.II is configured "
1144 "with HDF5 support. However, when you called 'cmake', HDF5 support "
1145 "was not detected.");
1152 "You are attempting to use functionality that is only available "
1153 "if deal.II was configured to use MPI.");
1160 "You are attempting to use functionality that is only available "
1161 "if deal.II was configured to use the function parser which "
1162 "relies on the muparser library, but cmake did not "
1163 "find a valid muparser library on your system and also did "
1164 "not choose the one that comes bundled with deal.II.");
1171 "You are attempting to use functionality that is only available "
1172 "if deal.II was configured to use Assimp, but cmake did not "
1173 "find a valid Assimp library.");
1175 #ifdef DEAL_II_WITH_CUDA
1188 <<
"There was an error in a cuSPARSE function: " << arg1);
1197 "You are attempting to use functionality that is only available if deal.II "
1198 "was configured to use Trilinos' SEACAS library (which provides ExodusII), "
1199 "but cmake did not find a valid SEACAS library.");
1206 "You are attempting to use functionality that is only available "
1207 "if deal.II was configured to use CGAL, but cmake did not "
1208 "find a valid CGAL library.");
1210 #ifdef DEAL_II_WITH_MPI
1238 print_info(std::ostream &out)
const override;
1246 #ifdef DEAL_II_TRILINOS_WITH_SEACAS
1263 ExcExodusII(
const int error_code);
1269 print_info(std::ostream &out)
const override;
1274 const int error_code;
1284 "A user call-back function encountered a recoverable error, "
1285 "but the underlying library that called the call-back did not "
1286 "manage to recover from the error and aborted its operation."
1288 "See the glossary entry on user call-back functions for more "
1426 template <
typename ExceptionType>
1431 const char *
function,
1433 const char *exc_name,
1437 e.set_fields(file, line,
function, cond, exc_name);
1476 template <
typename ExceptionType>
1480 const char *
function,
1482 const char *exc_name,
1483 ExceptionType
e) noexcept
1485 static_assert(std::is_base_of_v<ExceptionBase, ExceptionType>,
1486 "The provided exception must inherit from ExceptionBase.");
1488 e.set_fields(file, line,
function, cond, exc_name);
1493 #ifdef DEAL_II_WITH_CUDA
1542 # if KOKKOS_VERSION >= 30600
1543 # ifdef DEAL_II_HAVE_BUILTIN_EXPECT
1544 # define Assert(cond, exc) \
1546 KOKKOS_IF_ON_HOST(({ \
1547 if (__builtin_expect(!(cond), false)) \
1548 ::deal_II_exceptions::internals::issue_error_noreturn( \
1549 ::deal_II_exceptions::internals::ExceptionHandling:: \
1550 abort_or_throw_on_exception, \
1553 __PRETTY_FUNCTION__, \
1558 KOKKOS_IF_ON_DEVICE(({ \
1560 Kokkos::abort(#cond); \
1564 # define Assert(cond, exc) \
1566 KOKKOS_IF_ON_HOST(({ \
1568 ::deal_II_exceptions::internals::issue_error_noreturn( \
1569 ::deal_II_exceptions::internals::ExceptionHandling:: \
1570 abort_or_throw_on_exception, \
1573 __PRETTY_FUNCTION__, \
1578 KOKKOS_IF_ON_DEVICE(({ \
1580 Kokkos::abort(#cond); \
1585 # ifdef KOKKOS_ACTIVE_EXECUTION_MEMORY_SPACE_HOST
1586 # ifdef DEAL_II_HAVE_BUILTIN_EXPECT
1587 # define Assert(cond, exc) \
1589 if (__builtin_expect(!(cond), false)) \
1590 ::deal_II_exceptions::internals::issue_error_noreturn( \
1591 ::deal_II_exceptions::internals::ExceptionHandling:: \
1592 abort_or_throw_on_exception, \
1595 __PRETTY_FUNCTION__, \
1601 # define Assert(cond, exc) \
1604 ::deal_II_exceptions::internals::issue_error_noreturn( \
1605 ::deal_II_exceptions::internals::ExceptionHandling:: \
1606 abort_or_throw_on_exception, \
1609 __PRETTY_FUNCTION__, \
1616 # define Assert(cond, exc) \
1619 Kokkos::abort(#cond); \
1624 # define Assert(cond, exc) \
1657 # ifdef DEAL_II_HAVE_BUILTIN_EXPECT
1658 # define AssertNothrow(cond, exc) \
1660 if (__builtin_expect(!(cond), false)) \
1661 ::deal_II_exceptions::internals::issue_error_nothrow( \
1662 __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc); \
1665 # define AssertNothrow(cond, exc) \
1668 ::deal_II_exceptions::internals::issue_error_nothrow( \
1669 __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc); \
1673 # define AssertNothrow(cond, exc) \
1704 #ifdef DEAL_II_HAVE_BUILTIN_EXPECT
1705 # define AssertThrow(cond, exc) \
1707 if (__builtin_expect(!(cond), false)) \
1708 ::deal_II_exceptions::internals::issue_error_noreturn( \
1709 ::deal_II_exceptions::internals::ExceptionHandling:: \
1710 throw_on_exception, \
1713 __PRETTY_FUNCTION__, \
1719 # define AssertThrow(cond, exc) \
1722 ::deal_II_exceptions::internals::issue_error_noreturn( \
1723 ::deal_II_exceptions::internals::ExceptionHandling:: \
1724 throw_on_exception, \
1727 __PRETTY_FUNCTION__, \
1744 template <
typename T,
typename U>
1748 using common_type = std::common_type_t<T, U>;
1749 return static_cast<common_type
>(t) ==
static_cast<common_type
>(u);
1758 template <
typename T,
typename U>
1762 using common_type = std::common_type_t<T, U>;
1763 return (
static_cast<common_type
>(t) <
static_cast<common_type
>(u));
1789 #define AssertDimension(dim1, dim2) \
1790 Assert(::deal_II_exceptions::internals::compare_for_equality(dim1, \
1792 ::ExcDimensionMismatch((dim1), (dim2)))
1812 #define AssertVectorVectorDimension(VEC, DIM1, DIM2) \
1813 AssertDimension(VEC.size(), DIM1); \
1814 for (const auto &subvector : VEC) \
1817 AssertDimension(subvector.size(), DIM2); \
1825 template <
typename F>
1828 template <
typename T,
typename U>
1834 template <
typename F>
1857 #define AssertIndexRange(index, range) \
1858 Assert(::deal_II_exceptions::internals::compare_less_than(index, \
1860 ExcIndexRangeType<::internal::argument_type_t<void( \
1861 std::common_type_t<decltype(index), decltype(range)>)>>((index), \
1884 #define AssertIsFinite(number) \
1885 Assert(::numbers::is_finite(number), \
1886 ::ExcNumberNotFinite(std::complex<double>(number)))
1893 #define AssertIsNotUsed(obj) Assert((obj)->used() == false, ExcInternalError())
1895 #ifdef DEAL_II_WITH_MPI
1916 # define AssertThrowMPI(error_code) \
1917 AssertThrow(error_code == MPI_SUCCESS, ::ExcMPI(error_code))
1919 # define AssertThrowMPI(error_code) \
1923 #ifdef DEAL_II_WITH_CUDA
1942 # define AssertCuda(error_code) \
1943 Assert(error_code == cudaSuccess, \
1944 ::ExcCudaError(cudaGetErrorString(error_code)))
1946 # define AssertCuda(error_code) \
1948 (void)(error_code); \
1969 # define AssertNothrowCuda(error_code) \
1970 AssertNothrow(error_code == cudaSuccess, \
1971 ::ExcCudaError(cudaGetErrorString(error_code)))
1973 # define AssertNothrowCuda(error_code) \
1975 (void)(error_code); \
1997 # define AssertCudaKernel() \
1999 cudaError_t local_error_code = cudaPeekAtLastError(); \
2000 AssertCuda(local_error_code); \
2001 local_error_code = cudaDeviceSynchronize(); \
2002 AssertCuda(local_error_code) \
2005 # define AssertCudaKernel() \
2027 # define AssertCusparse(error_code) \
2029 error_code == CUSPARSE_STATUS_SUCCESS, \
2031 deal_II_exceptions::internals::get_cusparse_error_string( \
2034 # define AssertCusparse(error_code) \
2036 (void)(error_code); \
2057 # define AssertNothrowCusparse(error_code) \
2059 error_code == CUSPARSE_STATUS_SUCCESS, \
2061 deal_II_exceptions::internals::get_cusparse_error_string( \
2064 # define AssertNothrowCusparse(error_code) \
2066 (void)(error_code); \
2088 # define AssertCusolver(error_code) \
2090 error_code == CUSOLVER_STATUS_SUCCESS, \
2092 deal_II_exceptions::internals::get_cusolver_error_string( \
2095 # define AssertCusolver(error_code) \
2097 (void)(error_code); \
2103 #ifdef DEAL_II_TRILINOS_WITH_SEACAS
2121 # define AssertThrowExodusII(error_code) \
2122 AssertThrow(error_code == 0, \
2123 ::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