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

This commit is contained in:
sjplimp
2015-02-04 22:14:27 +00:00
parent a2aa6c5be0
commit 0ed5c699cc
9 changed files with 32 additions and 9 deletions

View File

@ -91,15 +91,19 @@ Fix::Fix(LAMMPS *lmp, int narg, char **arg) : Pointers(lmp)
execution_space = Host;
datamask_read = ALL_MASK;
datamask_modify = ALL_MASK;
copymode = 0;
}
/* ---------------------------------------------------------------------- */
Fix::~Fix()
{
delete [] id;
delete [] style;
memory->destroy(vatom);
if (!copymode) {
delete [] id;
delete [] style;
memory->destroy(vatom);
}
}
/* ----------------------------------------------------------------------