diff --git a/src/compute_cluster_atom.cpp b/src/compute_cluster_atom.cpp index 38a63d078c..0f3f3dd709 100644 --- a/src/compute_cluster_atom.cpp +++ b/src/compute_cluster_atom.cpp @@ -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"); diff --git a/src/fix_langevin.cpp b/src/fix_langevin.cpp index 47699bfac7..37da93f90d 100644 --- a/src/fix_langevin.cpp +++ b/src/fix_langevin.cpp @@ -338,7 +338,6 @@ void FixLangevin::post_force_no_tally() } } } - } /* ---------------------------------------------------------------------- */