From e69578efbcd3987244c58285a5fa57b759c3b435 Mon Sep 17 00:00:00 2001 From: Christian Glusa Date: Thu, 7 Mar 2024 13:57:25 -0700 Subject: [PATCH] Panzer MiniEM interpolation: Fix memory spaces --- .../panzer/mini-em/src/solvers/MiniEM_Interpolation.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/panzer/mini-em/src/solvers/MiniEM_Interpolation.cpp b/packages/panzer/mini-em/src/solvers/MiniEM_Interpolation.cpp index 02fb1ec77b7d..8199145715ad 100644 --- a/packages/panzer/mini-em/src/solvers/MiniEM_Interpolation.cpp +++ b/packages/panzer/mini-em/src/solvers/MiniEM_Interpolation.cpp @@ -185,9 +185,8 @@ Teko::LinearOp buildInterpolation(const Teuchos::RCP numEntriesPerRow("numEntriesPerRow", tp_rowmap->getLocalNumElements()); - Kokkos::DualView numEntriesPerRow("numEntriesPerRow", tp_rowmap->getLocalNumElements()); - + using dv = Kokkos::DualView; + dv numEntriesPerRow("numEntriesPerRow", tp_rowmap->getLocalNumElements()); { auto numEntriesPerRow_d = numEntriesPerRow.view_device(); @@ -220,8 +219,8 @@ Teko::LinearOp buildInterpolation(const Teuchos::RCP(); - numEntriesPerRow.template sync(); + numEntriesPerRow.template modify(); + numEntriesPerRow.template sync(); } // Set up graph