diff --git a/lammps_plugins/kokkos/pair_flare_kokkos.cpp b/lammps_plugins/kokkos/pair_flare_kokkos.cpp index b1de11ce4..8fc826fd3 100644 --- a/lammps_plugins/kokkos/pair_flare_kokkos.cpp +++ b/lammps_plugins/kokkos/pair_flare_kokkos.cpp @@ -614,7 +614,7 @@ void PairFLAREKokkos::operator()(TagF, const MemberType team_member) fx += (gg*Yval + gval*Yg) * uval; gg = gscratch(2, n); - Yg = Yscratch(3, lm); + Yg = Yscratch(2, lm); fy += (gg*Yval + gval*Yg) * uval; gg = gscratch(3, n);