16 #ifndef dealii_exceptions_h
17 #define dealii_exceptions_h
21 #include <Kokkos_Core.hpp>
26 #include <type_traits>
28 #ifdef DEAL_II_WITH_CUDA
29 # include <cusolverSp.h>
30 # include <cusparse.h>
84 const
char *exc_name);
91 what() const noexcept override;
151 #ifdef DEAL_II_HAVE_GLIBC_STACKTRACE
190 # define DeclException0(Exception0) \
191 class Exception0 : public ::ExceptionBase \
214 # define DeclExceptionMsg(Exception, defaulttext) \
215 class Exception : public ::ExceptionBase \
218 Exception(const std::string &msg = defaulttext) \
221 virtual ~Exception() noexcept \
224 print_info(std::ostream &out) const override \
226 out << " " << arg << std::endl; \
230 const std::string arg; \
250 # define DeclException1(Exception1, type1, outsequence) \
251 class Exception1 : public ::ExceptionBase \
254 Exception1(type1 const &a1) \
257 virtual ~Exception1() noexcept \
260 print_info(std::ostream &out) const override \
262 out << " " outsequence << std::endl; \
287 # define DeclException2(Exception2, type1, type2, outsequence) \
288 class Exception2 : public ::ExceptionBase \
291 Exception2(type1 const &a1, type2 const &a2) \
295 virtual ~Exception2() noexcept \
298 print_info(std::ostream &out) const override \
300 out << " " outsequence << std::endl; \
326 # define DeclException3(Exception3, type1, type2, type3, outsequence) \
327 class Exception3 : public ::ExceptionBase \
330 Exception3(type1 const &a1, type2 const &a2, type3 const &a3) \
335 virtual ~Exception3() noexcept \
338 print_info(std::ostream &out) const override \
340 out << " " outsequence << std::endl; \
367 # define DeclException4(Exception4, type1, type2, type3, type4, outsequence) \
368 class Exception4 : public ::ExceptionBase \
371 Exception4(type1 const &a1, \
380 virtual ~Exception4() noexcept \
383 print_info(std::ostream &out) const override \
385 out << " " outsequence << std::endl; \
413 # define DeclException5( \
414 Exception5, type1, type2, type3, type4, type5, outsequence) \
415 class Exception5 : public ::ExceptionBase \
418 Exception5(type1 const &a1, \
429 virtual ~Exception5() noexcept \
432 print_info(std::ostream &out) const override \
434 out << " " outsequence << std::endl; \
465 # define DeclException0(Exception0) \
467 static ::ExceptionBase &Exception0()
488 # define DeclExceptionMsg(Exception, defaulttext) \
491 static ::ExceptionBase &Exception()
510 # define DeclException1(Exception1, type1, outsequence) \
513 static ::ExceptionBase &Exception1(type1 arg1)
533 # define DeclException2(Exception2, type1, type2, outsequence) \
536 static ::ExceptionBase &Exception2(type1 arg1, type2 arg2)
556 # define DeclException3(Exception3, type1, type2, type3, outsequence) \
559 static ::ExceptionBase &Exception3(type1 arg1, type2 arg2, type3 arg3)
579 # define DeclException4(Exception4, type1, type2, type3, type4, outsequence) \
582 static ::ExceptionBase &Exception4(type1 arg1, \
605 # define DeclException5( \
606 Exception5, type1, type2, type3, type4, type5, outsequence) \
609 static ::ExceptionBase &Exception5( \
610 type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5)
637 "A piece of code is attempting a division by zero. This is "
638 "likely going to lead to results that make no sense.");
652 std::complex<double>,
653 <<
"In a significant number of places, deal.II checks that some intermediate "
654 <<
"value is a finite number (as opposed to plus or minus infinity, or "
655 <<
"NaN/Not a Number). In the current function, we encountered a number "
656 <<
"that is not finite (its value is " << arg1 <<
" and therefore "
657 <<
"violates the current assertion).\n\n"
658 <<
"This may be due to the fact that some operation in this function "
659 <<
"created such a value, or because one of the arguments you passed "
660 <<
"to the function already had this value from some previous "
661 <<
"operation. In the latter case, this function only triggered the "
662 <<
"error but may not actually be responsible for the computation of "
663 <<
"the number that is not finite.\n\n"
664 <<
"There are two common cases where this situation happens. First, your "
665 <<
"code (or something in deal.II) divides by zero in a place where this "
666 <<
"should not happen. Or, you are trying to solve a linear system "
667 <<
"with an unsuitable solver (such as an indefinite or non-symmetric "
668 <<
"linear system using a Conjugate Gradient solver); such attempts "
669 <<
"oftentimes yield an operation somewhere that tries to divide "
670 <<
"by zero or take the square root of a negative value.\n\n"
671 <<
"In any case, when trying to find the source of the error, "
672 <<
"recall that the location where you are getting this error is "
673 <<
"simply the first place in the program where there is a check "
674 <<
"that a number (e.g., an element of a solution vector) is in fact "
675 <<
"finite, but that the actual error that computed the number "
676 <<
"may have happened far earlier. To find this location, you "
677 <<
"may want to add checks for finiteness in places of your "
678 <<
"program visited before the place where this error is produced. "
679 <<
"One way to check for finiteness is to use the 'AssertIsFinite' "
687 "Your program tried to allocate some memory but this "
688 "allocation failed. Typically, this either means that "
689 "you simply do not have enough memory in your system, "
690 "or that you are (erroneously) trying to allocate "
691 "a chunk of memory that is simply beyond all reasonable "
692 "size, for example because the size of the object has "
693 "been computed incorrectly."
695 "In the current case, the request was for "
696 << arg1 <<
" bytes.");
704 <<
"Destroying memory handler while " << arg1
705 <<
" objects are still allocated.");
711 "An input/output error has occurred. There are a number of "
712 "reasons why this may be happening, both for reading and "
713 "writing operations."
715 "If this happens during an operation that tries to read "
716 "data: First, you may be "
717 "trying to read from a file that doesn't exist or that is "
718 "not readable given its file permissions. Second, deal.II "
719 "uses this error at times if it tries to "
720 "read information from a file but where the information "
721 "in the file does not correspond to the expected format. "
722 "An example would be a truncated file, or a mesh file "
723 "that contains not only sections that describe the "
724 "vertices and cells, but also sections for additional "
725 "data that deal.II does not understand."
727 "If this happens during an operation that tries to write "
728 "data: you may be trying to write to a file to which file "
729 "or directory permissions do not allow you to write. A "
730 "typical example is where you specify an output file in "
731 "a directory that does not exist.");
741 <<
"Could not open file " << arg1
744 "If this happens during an operation that tries to read "
746 "trying to read from a file that doesn't exist or that is "
747 "not readable given its file permissions."
749 "If this happens during an operation that tries to write "
750 "data: you may be trying to write to a file to which file "
751 "or directory permissions do not allow you to write. A "
752 "typical example is where you specify an output file in "
753 "a directory that does not exist.");
764 "You are trying to use functionality in deal.II that is "
765 "currently not implemented. In many cases, this indicates "
766 "that there simply didn't appear much of a need for it, or "
767 "that the author of the original code did not have the "
768 "time to implement a particular case. If you hit this "
769 "exception, it is therefore worth the time to look into "
770 "the code to find out whether you may be able to "
771 "implement the missing functionality. If you do, please "
772 "consider providing a patch to the deal.II development "
773 "sources (see the deal.II website on how to contribute).");
796 "This exception -- which is used in many places in the "
797 "library -- usually indicates that some condition which "
798 "the author of the code thought must be satisfied at a "
799 "certain point in an algorithm, is not fulfilled. An "
800 "example would be that the first part of an algorithm "
801 "sorts elements of an array in ascending order, and "
802 "a second part of the algorithm later encounters an "
803 "element that is not larger than the previous one."
805 "There is usually not very much you can do if you "
806 "encounter such an exception since it indicates an error "
807 "in deal.II, not in your own program. Try to come up with "
808 "the smallest possible program that still demonstrates "
809 "the error and contact the deal.II mailing lists with it "
820 "You (or a place in the library) are trying to call a "
821 "function that is declared as a virtual function in a "
822 "base class but that has not been overridden in your "
825 "This exception happens in cases where the base class "
826 "cannot provide a useful default implementation for "
827 "the virtual function, but where we also do not want "
828 "to mark the function as abstract (i.e., with '=0' at the end) "
829 "because the function is not essential to the class in many "
830 "contexts. In cases like this, the base class provides "
831 "a dummy implementation that makes the compiler happy, but "
832 "that then throws the current exception."
834 "A concrete example would be the 'Function' class. It declares "
835 "the existence of 'value()' and 'gradient()' member functions, "
836 "and both are marked as 'virtual'. Derived classes have to "
837 "override these functions for the values and gradients of a "
838 "particular function. On the other hand, not every function "
839 "has a gradient, and even for those that do, not every program "
840 "actually needs to evaluate it. Consequently, there is no "
841 "*requirement* that a derived class actually override the "
842 "'gradient()' function (as there would be had it been marked "
843 "as abstract). But, since the base class cannot know how to "
844 "compute the gradient, if a derived class does not override "
845 "the 'gradient()' function and it is called anyway, then the "
846 "default implementation in the base class will simply throw "
849 "The exception you see is what happens in cases such as the "
850 "one just illustrated. To fix the problem, you need to "
851 "investigate whether the function being called should indeed have "
852 "been called; if the answer is 'yes', then you need to "
853 "implement the missing override in your class.");
860 <<
"Please provide an implementation for the function \""
881 <<
"You are trying to execute functionality that is "
882 <<
"impossible in " << arg1
883 <<
"d or simply does not make any sense.");
895 <<
"You are trying to execute functionality that is "
896 <<
"impossible in dimensions <" << arg1 <<
',' << arg2
897 <<
"> or simply does not make any sense.");
904 "In a check in the code, deal.II encountered a zero in "
905 "a place where this does not make sense. See the condition "
906 "that was being checked and that is printed further up "
907 "in the error message to get more information on what "
908 "the erroneous zero corresponds to.");
915 "The object you are trying to access is empty but it makes "
916 "no sense to attempt the operation you are trying on an "
929 <<
"Two sizes or dimensions were supposed to be equal, "
930 <<
"but aren't. They are " << arg1 <<
" and " << arg2 <<
'.');
940 <<
"The size or dimension of one object, " << arg1
941 <<
" was supposed to be "
942 <<
"equal to one of two values, but isn't. The two possible "
943 <<
"values are " << arg2 <<
" and " << arg3 <<
'.');
962 <<
"Index " << arg1 <<
" is not in the half-open range [" << arg2 <<
','
965 " In the current case, this half-open range is in fact empty, "
966 "suggesting that you are accessing an element of an empty "
967 "collection such as a vector that has not been set to the "
986 template <
typename T>
992 <<
"Index " << arg1 <<
" is not in the half-open range [" << arg2 <<
','
995 " In the current case, this half-open range is in fact empty, "
996 "suggesting that you are accessing an element of an empty "
997 "collection such as a vector that has not been set to the "
1007 <<
"Number " << arg1 <<
" must be larger than or equal "
1013 template <
typename T>
1017 <<
"Number " << arg1 <<
" must be larger than or equal "
1027 <<
"Division " << arg1 <<
" by " << arg2
1028 <<
" has remainder different from zero.");
1039 "You are trying to use an iterator, but the iterator is "
1040 "in an invalid state. This may indicate that the iterator "
1041 "object has not been initialized, or that it has been "
1042 "moved beyond the end of the range of valid elements.");
1049 "You are trying to use an iterator, but the iterator is "
1050 "pointing past the end of the range of valid elements. "
1051 "It is not valid to dereference the iterator in this "
1073 "You are trying an operation on a vector that is only "
1074 "allowed if the vector has no ghost elements, but the "
1075 "vector you are operating on does have ghost elements. "
1076 "Specifically, vectors with ghost elements are read-only "
1077 "and cannot appear in operations that write into these "
1080 "See the glossary entry on 'Ghosted vectors' for more "
1089 <<
"Something went wrong when making cell " << arg1
1090 <<
". Read the docs and the source code "
1091 <<
"for more information.");
1101 "You are trying an operation of the form 'vector = C', "
1102 "'matrix = C', or 'tensor = C' with a nonzero scalar value "
1103 "'C'. However, such assignments are only allowed if the "
1104 "C is zero, since the semantics for assigning any other "
1105 "value are not clear. For example: one could interpret "
1106 "assigning a matrix a value of 1 to mean the matrix has a "
1107 "norm of 1, the matrix is the identity matrix, or the "
1108 "matrix contains only 1s. Similar problems exist with "
1109 "vectors and tensors. Hence, to avoid this ambiguity, such "
1110 "assignments are not permitted.");
1117 "You are attempting to use functionality that is only available "
1118 "if deal.II was configured to use LAPACK, but cmake did not "
1119 "find a valid LAPACK library.");
1126 "You are attempting to use functionality that requires that deal.II is configured "
1127 "with HDF5 support. However, when you called 'cmake', HDF5 support "
1128 "was not detected.");
1135 "You are attempting to use functionality that is only available "
1136 "if deal.II was configured to use MPI.");
1143 "You are attempting to use functionality that is only available "
1144 "if deal.II was configured to use the function parser which "
1145 "relies on the muparser library, but cmake did not "
1146 "find a valid muparser library on your system and also did "
1147 "not choose the one that comes bundled with deal.II.");
1154 "You are attempting to use functionality that is only available "
1155 "if deal.II was configured to use Assimp, but cmake did not "
1156 "find a valid Assimp library.");
1158 #ifdef DEAL_II_WITH_CUDA
1171 <<
"There was an error in a cuSPARSE function: " << arg1);
1180 "You are attempting to use functionality that is only available if deal.II "
1181 "was configured to use Trilinos' SEACAS library (which provides ExodusII), "
1182 "but cmake did not find a valid SEACAS library.");
1189 "You are attempting to use functionality that is only available "
1190 "if deal.II was configured to use CGAL, but cmake did not "
1191 "find a valid CGAL library.");
1193 #ifdef DEAL_II_WITH_MPI
1221 print_info(std::ostream &out)
const override;
1229 #ifdef DEAL_II_TRILINOS_WITH_SEACAS
1246 ExcExodusII(
const int error_code);
1252 print_info(std::ostream &out)
const override;
1257 const int error_code;
1396 template <
class ExceptionType>
1401 const char *
function,
1403 const char * exc_name,
1407 e.set_fields(file, line,
function, cond, exc_name);
1446 template <
class ExceptionType>
1450 const char *
function,
1452 const char * exc_name,
1453 ExceptionType
e) noexcept
1455 static_assert(std::is_base_of<ExceptionBase, ExceptionType>::value,
1456 "The provided exception must inherit from ExceptionBase.");
1458 e.set_fields(file, line,
function, cond, exc_name);
1463 #ifdef DEAL_II_WITH_CUDA
1512 # if KOKKOS_VERSION >= 30600
1513 # ifdef DEAL_II_HAVE_BUILTIN_EXPECT
1514 # define Assert(cond, exc) \
1516 KOKKOS_IF_ON_HOST(({ \
1517 if (__builtin_expect(!(cond), false)) \
1518 ::deal_II_exceptions::internals::issue_error_noreturn( \
1519 ::deal_II_exceptions::internals::ExceptionHandling:: \
1520 abort_or_throw_on_exception, \
1523 __PRETTY_FUNCTION__, \
1528 KOKKOS_IF_ON_DEVICE(({ \
1530 Kokkos::abort(#cond); \
1534 # define Assert(cond, exc) \
1536 KOKKOS_IF_ON_HOST(({ \
1538 ::deal_II_exceptions::internals::issue_error_noreturn( \
1539 ::deal_II_exceptions::internals::ExceptionHandling:: \
1540 abort_or_throw_on_exception, \
1543 __PRETTY_FUNCTION__, \
1548 KOKKOS_IF_ON_DEVICE(({ \
1550 Kokkos::abort(#cond); \
1555 # ifdef KOKKOS_ACTIVE_EXECUTION_MEMORY_SPACE_HOST
1556 # ifdef DEAL_II_HAVE_BUILTIN_EXPECT
1557 # define Assert(cond, exc) \
1559 if (__builtin_expect(!(cond), false)) \
1560 ::deal_II_exceptions::internals::issue_error_noreturn( \
1561 ::deal_II_exceptions::internals::ExceptionHandling:: \
1562 abort_or_throw_on_exception, \
1565 __PRETTY_FUNCTION__, \
1571 # define Assert(cond, exc) \
1574 ::deal_II_exceptions::internals::issue_error_noreturn( \
1575 ::deal_II_exceptions::internals::ExceptionHandling:: \
1576 abort_or_throw_on_exception, \
1579 __PRETTY_FUNCTION__, \
1586 # define Assert(cond, exc) \
1589 Kokkos::abort(#cond); \
1594 # define Assert(cond, exc) \
1627 # ifdef DEAL_II_HAVE_BUILTIN_EXPECT
1628 # define AssertNothrow(cond, exc) \
1630 if (__builtin_expect(!(cond), false)) \
1631 ::deal_II_exceptions::internals::issue_error_nothrow( \
1632 __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc); \
1635 # define AssertNothrow(cond, exc) \
1638 ::deal_II_exceptions::internals::issue_error_nothrow( \
1639 __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc); \
1643 # define AssertNothrow(cond, exc) \
1674 #ifdef DEAL_II_HAVE_BUILTIN_EXPECT
1675 # define AssertThrow(cond, exc) \
1677 if (__builtin_expect(!(cond), false)) \
1678 ::deal_II_exceptions::internals::issue_error_noreturn( \
1679 ::deal_II_exceptions::internals::ExceptionHandling:: \
1680 throw_on_exception, \
1683 __PRETTY_FUNCTION__, \
1689 # define AssertThrow(cond, exc) \
1692 ::deal_II_exceptions::internals::issue_error_noreturn( \
1693 ::deal_II_exceptions::internals::ExceptionHandling:: \
1694 throw_on_exception, \
1697 __PRETTY_FUNCTION__, \
1714 template <
typename T,
typename U>
1718 using common_type = std::common_type_t<T, U>;
1719 return static_cast<common_type
>(t) ==
static_cast<common_type
>(u);
1728 template <
typename T,
typename U>
1732 using common_type = std::common_type_t<T, U>;
1733 return (
static_cast<common_type
>(t) <
static_cast<common_type
>(u));
1759 #define AssertDimension(dim1, dim2) \
1760 Assert(::deal_II_exceptions::internals::compare_for_equality(dim1, \
1762 ::ExcDimensionMismatch((dim1), (dim2)))
1782 #define AssertVectorVectorDimension(VEC, DIM1, DIM2) \
1783 AssertDimension(VEC.size(), DIM1); \
1784 for (const auto &subvector : VEC) \
1787 AssertDimension(subvector.size(), DIM2); \
1795 template <
typename F>
1798 template <
typename T,
typename U>
1804 template <
typename F>
1827 #define AssertIndexRange(index, range) \
1828 Assert(::deal_II_exceptions::internals::compare_less_than(index, \
1830 ExcIndexRangeType<::internal::argument_type_t<void( \
1831 std::common_type_t<decltype(index), decltype(range)>)>>((index), \
1854 #define AssertIsFinite(number) \
1855 Assert(::numbers::is_finite(number), \
1856 ::ExcNumberNotFinite(std::complex<double>(number)))
1863 #define AssertIsNotUsed(obj) Assert((obj)->used() == false, ExcInternalError())
1865 #ifdef DEAL_II_WITH_MPI
1886 # define AssertThrowMPI(error_code) \
1887 AssertThrow(error_code == MPI_SUCCESS, ::ExcMPI(error_code))
1889 # define AssertThrowMPI(error_code) \
1893 #ifdef DEAL_II_WITH_CUDA
1912 # define AssertCuda(error_code) \
1913 Assert(error_code == cudaSuccess, \
1914 ::ExcCudaError(cudaGetErrorString(error_code)))
1916 # define AssertCuda(error_code) \
1918 (void)(error_code); \
1939 # define AssertNothrowCuda(error_code) \
1940 AssertNothrow(error_code == cudaSuccess, \
1941 ::ExcCudaError(cudaGetErrorString(error_code)))
1943 # define AssertNothrowCuda(error_code) \
1945 (void)(error_code); \
1967 # define AssertCudaKernel() \
1969 cudaError_t local_error_code = cudaPeekAtLastError(); \
1970 AssertCuda(local_error_code); \
1971 local_error_code = cudaDeviceSynchronize(); \
1972 AssertCuda(local_error_code) \
1975 # define AssertCudaKernel() \
1997 # define AssertCusparse(error_code) \
1999 error_code == CUSPARSE_STATUS_SUCCESS, \
2001 deal_II_exceptions::internals::get_cusparse_error_string( \
2004 # define AssertCusparse(error_code) \
2006 (void)(error_code); \
2027 # define AssertNothrowCusparse(error_code) \
2029 error_code == CUSPARSE_STATUS_SUCCESS, \
2031 deal_II_exceptions::internals::get_cusparse_error_string( \
2034 # define AssertNothrowCusparse(error_code) \
2036 (void)(error_code); \
2058 # define AssertCusolver(error_code) \
2060 error_code == CUSOLVER_STATUS_SUCCESS, \
2062 deal_II_exceptions::internals::get_cusolver_error_string( \
2065 # define AssertCusolver(error_code) \
2067 (void)(error_code); \
2073 #ifdef DEAL_II_TRILINOS_WITH_SEACAS
2091 # define AssertThrowExodusII(error_code) \
2092 AssertThrow(error_code == 0, \
2093 ::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_NAMESPACE_CLOSE
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 & 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 & 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