git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5836 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -294,7 +294,7 @@ ComputeReduce::~ComputeReduce()
|
||||
delete [] indices;
|
||||
delete [] owner;
|
||||
|
||||
memory->sfree(varatom);
|
||||
memory->destroy(varatom);
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
@ -573,9 +573,8 @@ double ComputeReduce::compute_one(int m, int flag)
|
||||
} else if (which[m] == VARIABLE) {
|
||||
if (nlocal > maxatom) {
|
||||
maxatom = atom->nmax;
|
||||
memory->sfree(varatom);
|
||||
varatom = (double *)
|
||||
memory->smalloc(maxatom*sizeof(double),"reduce:varatom");
|
||||
memory->destroy(varatom);
|
||||
memory->create(varatom,maxatom,"reduce:varatom");
|
||||
}
|
||||
|
||||
input->variable->compute_atom(vidx,igroup,varatom,1,0);
|
||||
|
||||
Reference in New Issue
Block a user