]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use Kokkos::abs
authorDaniel Arndt <arndtd@ornl.gov>
Wed, 28 Dec 2022 21:43:59 +0000 (22:43 +0100)
committerDaniel Arndt <arndtd@ornl.gov>
Wed, 28 Dec 2022 21:43:59 +0000 (22:43 +0100)
include/deal.II/lac/vector_operations_internal.h

index b1317471db3042caab82c9e299ef3aebaecdd7c6..8d1de426574f5311b9763a85773d7dee8a193bc9 100644 (file)
@@ -2527,11 +2527,11 @@ namespace internal
             exec, 0, size),
           KOKKOS_LAMBDA(size_type i, Number & update) {
 #if KOKKOS_VERSION < 30400
-            update += fabs(data.values(i));
+            update += abs(data.values(i));
 #elif KOKKOS_VERSION < 30700
-            update += Kokkos::Experimental::fabs(data.values(i));
+            update += Kokkos::Experimental::abs(data.values(i));
 #else
-            update += Kokkos::fabs(data.values(i));
+            update += Kokkos::abs(data.values(i));
 #endif
           },
           sum);
@@ -2559,9 +2559,9 @@ namespace internal
             update += pow(fabs(data.values(i)), exp);
 #elif KOKKOS_VERSION < 30700
             update += Kokkos::Experimental::pow(
-              Kokkos::Experimental::fabs(data.values(i)), exp);
+              Kokkos::Experimental::abs(data.values(i)), exp);
 #else
-            update += Kokkos::pow(Kokkos::fabs(data.values(i)), exp);
+            update += Kokkos::pow(Kokkos::abs(data.values(i)), exp);
 #endif
           },
           sum);

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.