From 502fbfb78a76b2e77b3ff32d7807deb29631ad64 Mon Sep 17 00:00:00 2001 From: Stan Moore Date: Fri, 19 Jul 2019 15:20:22 -0600 Subject: [PATCH] Fix memory issue --- src/KOKKOS/pair_snap_kokkos_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/KOKKOS/pair_snap_kokkos_impl.h b/src/KOKKOS/pair_snap_kokkos_impl.h index e53332050a..95afcc5ec7 100644 --- a/src/KOKKOS/pair_snap_kokkos_impl.h +++ b/src/KOKKOS/pair_snap_kokkos_impl.h @@ -208,7 +208,7 @@ void PairSNAPKokkos::compute(int eflag_in, int vflag_in) d_ninside = Kokkos::View("PairSNAPKokkos:ninside",inum); } - int chunk_size = 2000; + int chunk_size = MIN(2000,inum); chunk_offset = 0; snaKK.grow_rij(chunk_size,max_neighs);