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:
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user