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
committed by Pierre de Buyl
parent 87fac22300
commit e2ad749a06
9 changed files with 32 additions and 9 deletions

View File

@ -104,14 +104,18 @@ Pair::Pair(LAMMPS *lmp) : Pointers(lmp)
execution_space = Host;
datamask_read = ALL_MASK;
datamask_modify = ALL_MASK;
copymode = 0;
}
/* ---------------------------------------------------------------------- */
Pair::~Pair()
{
memory->destroy(eatom);
memory->destroy(vatom);
if (!copymode) {
memory->destroy(eatom);
memory->destroy(vatom);
}
}
/* ----------------------------------------------------------------------