Fix memory issue

This commit is contained in:
Stan Moore 2019-07-19 15:20:22 -06:00
parent c7bccc5e7a
commit 502fbfb78a
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ void PairSNAPKokkos<DeviceType>::compute(int eflag_in, int vflag_in)
d_ninside = Kokkos::View<int*, DeviceType>("PairSNAPKokkos:ninside",inum); d_ninside = Kokkos::View<int*, DeviceType>("PairSNAPKokkos:ninside",inum);
} }
int chunk_size = 2000; int chunk_size = MIN(2000,inum);
chunk_offset = 0; chunk_offset = 0;
snaKK.grow_rij(chunk_size,max_neighs); snaKK.grow_rij(chunk_size,max_neighs);