diff --git a/src/KOKKOS/sna_kokkos_impl.h b/src/KOKKOS/sna_kokkos_impl.h index 9342ed2863..43840a0020 100644 --- a/src/KOKKOS/sna_kokkos_impl.h +++ b/src/KOKKOS/sna_kokkos_impl.h @@ -324,7 +324,7 @@ void SNAKokkos::compute_ui(const typename Kokkos::TeamPolicy::compute_ui(const typename Kokkos::TeamPolicy::compute_ui(const typename Kokkos::TeamPolicy::compute_ui(const typename Kokkos::TeamPolicy::compute_ui(const typename Kokkos::TeamPolicy::compute_ui(const typename Kokkos::TeamPolicy::compute_fused_deidrj(const typename Kokkos::TeamPoli // Accumulate the full contribution to dedr on the fly const double du_prod = dsfac * u; // chain rule - const SNAcomplex y_local = ylist(0, iatom); + const SNAcomplex y_local = ylist(jpos, iatom); // Symmetry factor of 0.5 b/c 0 element is on diagonal for even j==0 double dedr_full_sum = 0.5 * du_prod * y_local.re; @@ -1047,7 +1047,6 @@ void SNAKokkos::add_uarraytot(const typename Kokkos::TeamPolicy