diff --git a/src/KOKKOS/fix_cmap_kokkos.cpp b/src/KOKKOS/fix_cmap_kokkos.cpp index 9f3fcf5a1a..b0fa1926d3 100644 --- a/src/KOKKOS/fix_cmap_kokkos.cpp +++ b/src/KOKKOS/fix_cmap_kokkos.cpp @@ -705,7 +705,7 @@ int FixCMAPKokkos::pack_exchange_kokkos( const int k = d_copylist(mysend); if (k > -1) { - Kokkos::printf(" *** ok 2 ... i %i k %i\n", i, k); + // Kokkos::printf(" *** ok 2 ... i %i k %i\n", i, k); l_num_crossterm(i) = l_num_crossterm(k); for (int m = 0; m < l_num_crossterm(k); m++) { @@ -720,6 +720,8 @@ int FixCMAPKokkos::pack_exchange_kokkos( } },n); + Kokkos::printf(" *** ok 3 ... n %i \n", n); + copymode = 0; k_buf.modify(); @@ -776,7 +778,7 @@ void FixCMAPKokkos::unpack_exchange_kokkos( auto l_crossterm_atom4 = d_crossterm_atom4; auto l_crossterm_atom5 = d_crossterm_atom5; - Kokkos::parallel_for(nrecv, KOKKOS_LAMBDA(const int &i) { + Kokkos::parallel_for(nextrarecv1, KOKKOS_LAMBDA(const int &i) { int index = d_indices(i); if (index > -1) { @@ -789,7 +791,7 @@ void FixCMAPKokkos::unpack_exchange_kokkos( Kokkos::printf(" *** unpack_exchange_kokkos() ... nrecv %i nrecv1 %i nextrarecv1 %i i %i index %i m %i l_num_crossterm(index) %i\n", nrecv, nrecv1, nextrarecv1, i, index, m, l_num_crossterm(index)); - l_crossterm_type(index,m) = static_cast(d_buf(i+1)); + l_crossterm_type(index,m) = static_cast (d_buf(i+1)); l_crossterm_atom1(index,m) = static_cast (d_buf(i+2)); l_crossterm_atom2(index,m) = static_cast (d_buf(i+3)); l_crossterm_atom3(index,m) = static_cast (d_buf(i+4));