From 84e14068bea48e8d9604510e7b94bd25da08170e Mon Sep 17 00:00:00 2001 From: blegouix Date: Thu, 12 Oct 2023 14:56:54 +0200 Subject: [PATCH] forgotten in merge --- include/ddc/chunk_span.hpp | 3 ++- include/ddc/discrete_element.hpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/ddc/chunk_span.hpp b/include/ddc/chunk_span.hpp index 0de8e535b..6f10c1794 100644 --- a/include/ddc/chunk_span.hpp +++ b/include/ddc/chunk_span.hpp @@ -265,7 +265,8 @@ class ChunkSpan, LayoutStridedPolicy, Memo * @return const-reference to this element */ template - KOKKOS_FUNCTION constexpr reference operator()(DiscreteElement const& delems) const noexcept + KOKKOS_FUNCTION constexpr reference operator()( + DiscreteElement const& delems) const noexcept { static_assert(sizeof...(ODDims) == sizeof...(DDims), "Invalid number of dimensions"); assert(((select(delems) >= front(this->m_domain)) && ...)); diff --git a/include/ddc/discrete_element.hpp b/include/ddc/discrete_element.hpp index 2797a3175..3907f1b40 100644 --- a/include/ddc/discrete_element.hpp +++ b/include/ddc/discrete_element.hpp @@ -154,7 +154,8 @@ class DiscreteElement KOKKOS_DEFAULTED_FUNCTION constexpr DiscreteElement(DiscreteElement&&) = default; template - explicit KOKKOS_FUNCTION constexpr DiscreteElement(DiscreteElement const& other) noexcept + explicit KOKKOS_FUNCTION constexpr DiscreteElement( + DiscreteElement const& other) noexcept : m_values {other.template uid()...} { }