From bce11d1402ab028a34a9b63e10883c56e7be8da1 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Thu, 28 Apr 2011 18:52:25 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6029 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/compute_cluster_atom.cpp | 2 +- src/fix_langevin.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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() } } } - } /* ---------------------------------------------------------------------- */