Fixing Kokkos bug

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14505 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
stamoor
2016-01-27 18:40:46 +00:00
parent 0541d52c17
commit dca90d44b7

View File

@ -420,7 +420,8 @@ void NeighborKokkos::build_kokkos(int topoflag)
x = atomKK->k_x; x = atomKK->k_x;
int nlocal = atom->nlocal; int nlocal = atom->nlocal;
if (includegroup) nlocal = atom->nfirst; if (includegroup) nlocal = atom->nfirst;
if (nlocal > maxhold) { int maxhold_kokkos = xhold.view<DeviceType>().dimension_0();
if (nlocal > maxhold || maxhold_kokkos < maxhold) {
maxhold = atom->nmax; maxhold = atom->nmax;
xhold = DAT::tdual_x_array("neigh:xhold",maxhold); xhold = DAT::tdual_x_array("neigh:xhold",maxhold);
} }