git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@15083 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -1542,7 +1542,7 @@ void Neighbor::build(int topoflag)
|
||||
double **x = atom->x;
|
||||
int nlocal = atom->nlocal;
|
||||
if (includegroup) nlocal = atom->nfirst;
|
||||
if (nlocal > maxhold) {
|
||||
if (atom->nmax > maxhold) {
|
||||
maxhold = atom->nmax;
|
||||
memory->destroy(xhold);
|
||||
memory->create(xhold,maxhold,3,"neigh:xhold");
|
||||
@ -1577,10 +1577,10 @@ void Neighbor::build(int topoflag)
|
||||
// else only invoke grow() if nlocal exceeds previous list size
|
||||
// only for lists with growflag set and which are perpetual (glist)
|
||||
|
||||
if (anyghostlist && atom->nlocal+atom->nghost > maxatom) {
|
||||
if (anyghostlist && atom->nmax > maxatom) {
|
||||
maxatom = atom->nmax;
|
||||
for (i = 0; i < nglist; i++) lists[glist[i]]->grow(maxatom);
|
||||
} else if (atom->nlocal > maxatom) {
|
||||
} else if (atom->nmax > maxatom) {
|
||||
maxatom = atom->nmax;
|
||||
for (i = 0; i < nglist; i++) lists[glist[i]]->grow(maxatom);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user