From 792811a5b9eaf4778d401ca5794950f7e3f815e1 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 28 Dec 2022 22:43:59 +0100 Subject: [PATCH] Use Kokkos::abs --- include/deal.II/lac/vector_operations_internal.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); -- 2.39.5