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

This commit is contained in:
sjplimp
2011-03-25 21:13:51 +00:00
parent e3cf018311
commit fbb475b9cd
149 changed files with 1402 additions and 1660 deletions

View File

@ -67,7 +67,7 @@ ComputeDisplaceAtom::~ComputeDisplaceAtom()
if (modify->nfix) modify->delete_fix(id_fix);
delete [] id_fix;
memory->destroy_2d_double_array(displace);
memory->destroy(displace);
}
/* ---------------------------------------------------------------------- */
@ -90,10 +90,9 @@ void ComputeDisplaceAtom::compute_peratom()
// grow local displacement array if necessary
if (atom->nlocal > nmax) {
memory->destroy_2d_double_array(displace);
memory->destroy(displace);
nmax = atom->nmax;
displace =
memory->create_2d_double_array(nmax,4,"displace/atom:displace");
memory->create(displace,nmax,4,"displace/atom:displace");
array_atom = displace;
}