Unverified Commit 2b5073fb authored by Axel Kohlmeyer's avatar Axel Kohlmeyer Committed by GitHub
Browse files

Merge pull request #1311 from akohlmey/correct-delete-callback

Correct calls to atom->delete_callback()
parents f2a97788 bc2eeaf2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -205,6 +205,8 @@ FixHyperLocal::~FixHyperLocal()
  memory->destroy(bonds);
  memory->destroy(numbond);

  atom->delete_callback(id,0);

  memory->destroy(maxstrain);
  memory->destroy(maxstrain_region);
  memory->destroy(maxstrain_bondindex);
+3 −0
Original line number Diff line number Diff line
@@ -136,6 +136,9 @@ FixFFL::FixFFL(LAMMPS *lmp, int narg, char **arg) :
FixFFL::~FixFFL() {
  delete random;

  atom->delete_callback(id,0);
  atom->delete_callback(id,1);

  memory->destroy(sqrt_m);
  memory->destroy(ffl_tmp1);
  memory->destroy(ffl_tmp2);
+0 −1
Original line number Diff line number Diff line
@@ -217,7 +217,6 @@ FixFilterCorotate::~FixFilterCorotate()
  memory->destroy(dn2dx);
  memory->destroy(dn3dx);

  atom->delete_callback(id,2);
  atom->delete_callback(id,0);

  // delete locally stored arrays