From 722f50aa4b9235cb9731a40c0c1171f27a20a641 Mon Sep 17 00:00:00 2001 From: Christian Glusa Date: Tue, 28 Jan 2025 17:27:10 -0700 Subject: [PATCH] Stohos: Silence shadow warning Signed-off-by: Christian Glusa --- .../vector/KokkosExp_View_MP_Vector_Contiguous.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/stokhos/src/sacado/kokkos/vector/KokkosExp_View_MP_Vector_Contiguous.hpp b/packages/stokhos/src/sacado/kokkos/vector/KokkosExp_View_MP_Vector_Contiguous.hpp index b8bbc9652455..a0a99a251274 100644 --- a/packages/stokhos/src/sacado/kokkos/vector/KokkosExp_View_MP_Vector_Contiguous.hpp +++ b/packages/stokhos/src/sacado/kokkos/vector/KokkosExp_View_MP_Vector_Contiguous.hpp @@ -111,19 +111,19 @@ inline auto create_mirror( if constexpr ( ! std::is_same_v::array_layout, LayoutStride>) { return src.layout(); } else { - LayoutStride layout; + LayoutStride layout2; for (int idx = 0; idx <= 7; ++idx) { - layout.dimension[idx] = src.extent(idx); - layout.stride [idx] = src.stride(idx); + layout2.dimension[idx] = src.extent(idx); + layout2.stride [idx] = src.stride(idx); } - return layout; + return layout2; } }(); layout.dimension[src_type::rank] = dimension_scalar(src); - + const auto prop_copy = Impl::with_properties_if_unset( arg_prop, std::string(src.label()).append("_mirror"));