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

This commit is contained in:
sjplimp
2011-03-26 00:50:29 +00:00
parent fbb475b9cd
commit 1f2a7add78
131 changed files with 1278 additions and 1496 deletions

View File

@ -54,7 +54,7 @@ ComputeClusterAtom::ComputeClusterAtom(LAMMPS *lmp, int narg, char **arg) :
ComputeClusterAtom::~ComputeClusterAtom()
{
memory->sfree(clusterID);
memory->destroy(clusterID);
}
/* ---------------------------------------------------------------------- */
@ -105,10 +105,9 @@ void ComputeClusterAtom::compute_peratom()
// grow clusterID array if necessary
if (atom->nlocal > nmax) {
memory->sfree(clusterID);
memory->destroy(clusterID);
nmax = atom->nmax;
clusterID = (double *)
memory->smalloc(nmax*sizeof(double),"cluster/atom:clusterID");
memory->create(clusterID,nmax,"cluster/atom:clusterID");
vector_atom = clusterID;
}