Commit 928947dc authored by Tim Mattox's avatar Tim Mattox
Browse files

neighbor_kokkos.cpp: Don't call grow() on neighbor lists that are copies.

This corresponds to a bugfix from commit 9161bd98 on neighbor.cpp
parent cb982f2f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -306,7 +306,7 @@ void NeighborKokkos::build_kokkos(int topoflag)
  atomKK->sync(Host,ALL_MASK);
  for (i = 0; i < npair_perpetual; i++) {
    m = plist[i];
    lists[m]->grow(nlocal,nall);
    if (!lists[m]->copy) lists[m]->grow(nlocal,nall);
    neigh_pair[m]->build_setup();
    neigh_pair[m]->build(lists[m]);
  }