git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5835 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -44,7 +44,7 @@ Dihedral::Dihedral(LAMMPS *lmp) : Pointers(lmp)
|
||||
Dihedral::~Dihedral()
|
||||
{
|
||||
memory->sfree(eatom);
|
||||
memory->destroy_2d_double_array(vatom);
|
||||
memory->destroy(vatom);
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
@ -87,8 +87,8 @@ void Dihedral::ev_setup(int eflag, int vflag)
|
||||
}
|
||||
if (vflag_atom && atom->nmax > maxvatom) {
|
||||
maxvatom = atom->nmax;
|
||||
memory->destroy_2d_double_array(vatom);
|
||||
vatom = memory->create_2d_double_array(maxvatom,6,"bond:vatom");
|
||||
memory->destroy(vatom);
|
||||
memory->create(vatom,maxvatom,6,"bond:vatom");
|
||||
}
|
||||
|
||||
// zero accumulators
|
||||
|
||||
Reference in New Issue
Block a user