diff --git a/src/neighbor.cpp b/src/neighbor.cpp index 98bf70549c09eaa80831e97863efdf950f749470..bc96075dd909c91046f356c2134bf58631c23d63 100644 --- a/src/neighbor.cpp +++ b/src/neighbor.cpp @@ -1399,9 +1399,9 @@ void Neighbor::build(int topoflag) } // if any lists store neighbors of ghosts: - // invoke grow() if nlocal+nghost exceeds previous list size + // invoke grow() if nlocal+nghost exceeds previous list size // else only invoke grow() if nlocal exceeds previous list size - // only done for lists with growflag set and which are perpetual + // only for lists with growflag set and which are perpetual (glist) if (anyghostlist && atom->nlocal+atom->nghost > maxatom) { maxatom = atom->nmax; @@ -1468,6 +1468,8 @@ void Neighbor::build_one(int i) if (lists[i]->growflag) lists[i]->grow(maxatom); + // extend atom bin list if necessary + if (style != NSQ && atom->nmax > maxbin) { maxbin = atom->nmax; memory->destroy(bins);