Commit 1d17cae4 authored by sjplimp's avatar sjplimp Committed by GitHub
Browse files

Merge pull request #382 from timattox/master_kokkos_neigh_bugfix

neighbor_kokkos.cpp: Don't call grow() on neighbor lists that are copies
parents 429264a1 928947dc
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]);
  }