forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11762 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
d94811f0e8
commit
323a458de9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue