From f553a85120c631c320cf20b6f799ca2de5dcb6c1 Mon Sep 17 00:00:00 2001 From: Andrey Prokopenko Date: Fri, 13 Sep 2024 21:53:00 -0400 Subject: [PATCH] Fix CI issues --- src/geometry/ArborX_Box.hpp | 28 ++++++++++++++++++++++++++++ test/ArborX_BoostRTreeHelpers.hpp | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/src/geometry/ArborX_Box.hpp b/src/geometry/ArborX_Box.hpp index 4fbdccf37..8263778d9 100644 --- a/src/geometry/ArborX_Box.hpp +++ b/src/geometry/ArborX_Box.hpp @@ -59,6 +59,34 @@ struct Box Details::KokkosExt::ArithmeticTraits::finite_min::value, Details::KokkosExt::ArithmeticTraits::finite_min::value}}; + [[deprecated("Use expand(Box, Box) instead.")]] KOKKOS_FUNCTION Box & + operator+=(Box const &other) + { + using Kokkos::max; + using Kokkos::min; + + for (int d = 0; d < 3; ++d) + { + minCorner()[d] = min(minCorner()[d], other.minCorner()[d]); + maxCorner()[d] = max(maxCorner()[d], other.maxCorner()[d]); + } + return *this; + } + + [[deprecated("Use expand(Box, Point) instead.")]] KOKKOS_FUNCTION Box & + operator+=(Point<3> const &point) + { + using Kokkos::max; + using Kokkos::min; + + for (int d = 0; d < 3; ++d) + { + minCorner()[d] = min(minCorner()[d], point[d]); + maxCorner()[d] = max(maxCorner()[d], point[d]); + } + return *this; + } + // FIXME Temporary workaround until we clarify requirements on the Kokkos side. #if defined(KOKKOS_ENABLE_OPENMPTARGET) || defined(KOKKOS_ENABLE_SYCL) private: diff --git a/test/ArborX_BoostRTreeHelpers.hpp b/test/ArborX_BoostRTreeHelpers.hpp index 0979ed2a2..68b8a5ef1 100644 --- a/test/ArborX_BoostRTreeHelpers.hpp +++ b/test/ArborX_BoostRTreeHelpers.hpp @@ -216,7 +216,7 @@ performQueries(RTree const &rtree, UserPredicates const &predicates) static_assert(Kokkos::SpaceAccessibility::accessible); - Predicates queries{predicates}; + Predicates queries{predicates}; // NOLINT using Value = typename RTree::value_type; int const n_queries = queries.size();