forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6029 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
e2707ca96f
commit
bce11d1402
|
@ -104,7 +104,7 @@ void ComputeClusterAtom::compute_peratom()
|
|||
|
||||
// grow clusterID array if necessary
|
||||
|
||||
if (atom->nlocal > nmax) {
|
||||
if (atom->nlocal+atom->nghost > nmax) {
|
||||
memory->destroy(clusterID);
|
||||
nmax = atom->nmax;
|
||||
memory->create(clusterID,nmax,"cluster/atom:clusterID");
|
||||
|
|
|
@ -338,7 +338,6 @@ void FixLangevin::post_force_no_tally()
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
|
Loading…
Reference in New Issue