From 6e9b85bb26221114c18f53606aed5ae6fd387c0a Mon Sep 17 00:00:00 2001 From: Matthew Martineau Date: Fri, 6 May 2016 21:08:23 +0100 Subject: [PATCH] Fixed deep copy ordering, which was reversed --- KOKKOSStream.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/KOKKOSStream.cpp b/KOKKOSStream.cpp index 0c3f44c..d93b6d7 100644 --- a/KOKKOSStream.cpp +++ b/KOKKOSStream.cpp @@ -43,18 +43,18 @@ void KOKKOSStream::write_arrays( (*hm_b)(ii) = b[ii]; (*hm_c)(ii) = c[ii]; } - deep_copy(*hm_a, *d_a); - deep_copy(*hm_b, *d_b); - deep_copy(*hm_c, *d_c); + deep_copy(*d_a, *hm_a); + deep_copy(*d_b, *hm_b); + deep_copy(*d_c, *hm_c); } template void KOKKOSStream::read_arrays( std::vector& a, std::vector& b, std::vector& c) { - deep_copy(*d_a, *hm_a); - deep_copy(*d_b, *hm_b); - deep_copy(*d_c, *hm_c); + deep_copy(*hm_a, *d_a); + deep_copy(*hm_b, *d_b); + deep_copy(*hm_c, *d_c); for(int ii = 0; ii < array_size; ++ii) { a[ii] = (*hm_a)(ii);