From 039616d1e3c5576dc993cdf5008cef691dd602a8 Mon Sep 17 00:00:00 2001 From: Nathan Ellingwood Date: Fri, 21 Nov 2025 16:18:14 -0700 Subject: [PATCH] tpetra: fix ArithTraits namespace for kokkos@5.0 Signed-off-by: Nathan Ellingwood --- packages/tpetra/core/src/Tpetra_CrsMatrix_def.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/tpetra/core/src/Tpetra_CrsMatrix_def.hpp b/packages/tpetra/core/src/Tpetra_CrsMatrix_def.hpp index f50bd9e7a93e..c77d4e4696f9 100644 --- a/packages/tpetra/core/src/Tpetra_CrsMatrix_def.hpp +++ b/packages/tpetra/core/src/Tpetra_CrsMatrix_def.hpp @@ -8930,7 +8930,11 @@ void copyAndPermuteStaticGraphNew( using LO = LocalOrdinal; using GO = GlobalOrdinal; +#if KOKKOS_VERSION >= 40799 + using impl_scalar_type = typename KokkosKernels::ArithTraits::val_type; +#else using impl_scalar_type = typename Kokkos::ArithTraits::val_type; +#endif using crs_matrix_type = CrsMatrix;