git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11762 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2014-04-09 19:48:20 +00:00
parent d94811f0e8
commit 323a458de9
1 changed files with 4 additions and 2 deletions

View File

@ -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);