From: Daniel Arndt Date: Wed, 28 Dec 2022 21:43:59 +0000 (+0100) Subject: Use Kokkos::abs X-Git-Tag: v9.5.0-rc1~697^2~9 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=792811a5b9eaf4778d401ca5794950f7e3f815e1;p=dealii.git Use Kokkos::abs --- diff --git a/include/deal.II/lac/vector_operations_internal.h b/include/deal.II/lac/vector_operations_internal.h index b1317471db..8d1de42657 100644 --- a/include/deal.II/lac/vector_operations_internal.h +++ b/include/deal.II/lac/vector_operations_internal.h @@ -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);