git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5836 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -38,7 +38,7 @@ Improper::Improper(LAMMPS *lmp) : Pointers(lmp)
|
||||
|
||||
Improper::~Improper()
|
||||
{
|
||||
memory->sfree(eatom);
|
||||
memory->destroy(eatom);
|
||||
memory->destroy(vatom);
|
||||
}
|
||||
|
||||
@ -76,8 +76,8 @@ void Improper::ev_setup(int eflag, int vflag)
|
||||
|
||||
if (eflag_atom && atom->nmax > maxeatom) {
|
||||
maxeatom = atom->nmax;
|
||||
memory->sfree(eatom);
|
||||
eatom = (double *) memory->smalloc(maxeatom*sizeof(double),"bond:eatom");
|
||||
memory->destroy(eatom);
|
||||
memory->create(eatom,maxeatom,"bond:eatom");
|
||||
}
|
||||
if (vflag_atom && atom->nmax > maxvatom) {
|
||||
maxvatom = atom->nmax;
|
||||
|
||||
Reference in New Issue
Block a user