git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@15083 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -122,7 +122,7 @@ void AtomKokkos::sort()
|
||||
|
||||
// reallocate per-atom vectors if needed
|
||||
|
||||
if (nlocal > maxnext) {
|
||||
if (atom->nmax > maxnext) {
|
||||
memory->destroy(next);
|
||||
memory->destroy(permute);
|
||||
maxnext = atom->nmax;
|
||||
@ -265,4 +265,4 @@ AtomVec *AtomKokkos::new_avec(const char *style, int trysuffix, int &sflag)
|
||||
if (!avec->kokkosable)
|
||||
error->all(FLERR,"KOKKOS package requires a kokkos enabled atom_style");
|
||||
return avec;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user