]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mark more functions used in Assert as DEAL_II_HOST_DEVICE 14880/head
authorDaniel Arndt <arndtd@ornl.gov>
Mon, 13 Mar 2023 13:13:05 +0000 (13:13 +0000)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 13 Mar 2023 13:36:54 +0000 (13:36 +0000)
include/deal.II/base/exceptions.h

index f8e184a158698fa987c5158c8d2096d16af8f92c..72aca8fa69494efd4a380b2eb61d21fb4340ce0e 100644 (file)
@@ -1712,7 +1712,7 @@ namespace deal_II_exceptions
      * different types (e.g., unsigned and signed variables).
      */
     template <typename T, typename U>
-    inline constexpr bool
+    inline DEAL_II_HOST_DEVICE constexpr bool
     compare_for_equality(const T &t, const U &u)
     {
       using common_type = std::common_type_t<T, U>;
@@ -1726,7 +1726,7 @@ namespace deal_II_exceptions
      * different types (e.g., unsigned and signed variables).
      */
     template <typename T, typename U>
-    inline constexpr bool
+    inline DEAL_II_HOST_DEVICE constexpr bool
     compare_less_than(const T &t, const U &u)
     {
       using common_type = std::common_type_t<T, U>;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.