Fix issue in Kokkos neigh list when using half-from-full

This commit is contained in:
Stan Moore
2019-07-10 16:53:26 -06:00
parent a1a7754961
commit 39873fb7a3

View File

@ -36,7 +36,7 @@ void NeighListKokkos<Device>::grow(int nmax)
{
// skip if this list is already long enough to store nmax atoms
if (nmax <= maxatoms) return;
if (nmax <= maxatoms && d_neighbors.extent(1) >= maxneighs) return;
maxatoms = nmax;
k_ilist =