Unverified Commit 7109c101 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer Committed by GitHub
Browse files

Merge pull request #1560 from stanmoore1/kk_halffull

Fix memory issue in Kokkos neigh list when using half-from-full
parents a1a77549 789d6a99
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -35,8 +35,9 @@ template<class Device>
void NeighListKokkos<Device>::grow(int nmax)
void NeighListKokkos<Device>::grow(int nmax)
{
{
  // skip if this list is already long enough to store nmax atoms
  // skip if this list is already long enough to store nmax atoms
  //  and maxneighs neighbors


  if (nmax <= maxatoms) return;
  if (nmax <= maxatoms && d_neighbors.extent(1) >= maxneighs) return;
  maxatoms = nmax;
  maxatoms = nmax;


  k_ilist =
  k_ilist =