From 39873fb7a3367367a6bba05fe4dffdf2dbd11cd8 Mon Sep 17 00:00:00 2001 From: Stan Moore Date: Wed, 10 Jul 2019 16:53:26 -0600 Subject: [PATCH] Fix issue in Kokkos neigh list when using half-from-full --- src/KOKKOS/neigh_list_kokkos.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/KOKKOS/neigh_list_kokkos.cpp b/src/KOKKOS/neigh_list_kokkos.cpp index 1c78fe3a68..a5d832cab6 100644 --- a/src/KOKKOS/neigh_list_kokkos.cpp +++ b/src/KOKKOS/neigh_list_kokkos.cpp @@ -36,7 +36,7 @@ void NeighListKokkos::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 =