diff --git a/src/KOKKOS/verlet_kokkos.cpp b/src/KOKKOS/verlet_kokkos.cpp index 14540c9ace..2d142edd83 100644 --- a/src/KOKKOS/verlet_kokkos.cpp +++ b/src/KOKKOS/verlet_kokkos.cpp @@ -492,7 +492,7 @@ void VerletKokkos::run(int n) timer->stamp(Timer::KSPACE); } - if (execute_on_host && !std::is_same::value) { + if (execute_on_host && atomKK->k_f.h_view.data() != atomKK->k_f.d_view.data()) { if (f_merge_copy.extent(0)k_f.extent(0)) { f_merge_copy = DAT::t_f_array("VerletKokkos::f_merge_copy",atomKK->k_f.extent(0)); }