From d2b65590392e5782ebb2217129d78d555a7dd3c8 Mon Sep 17 00:00:00 2001 From: Stan Moore <stamoor@sandia.gov> Date: Wed, 31 May 2017 10:52:03 -0600 Subject: [PATCH] Fixing issue in fix_qeq_reax --- src/USER-REAXC/fix_qeq_reax.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/USER-REAXC/fix_qeq_reax.cpp b/src/USER-REAXC/fix_qeq_reax.cpp index cf2e6612a2..9d165f3fd3 100644 --- a/src/USER-REAXC/fix_qeq_reax.cpp +++ b/src/USER-REAXC/fix_qeq_reax.cpp @@ -140,12 +140,12 @@ FixQEqReax::FixQEqReax(LAMMPS *lmp, int narg, char **arg) : FixQEqReax::~FixQEqReax() { + if (copymode) return; + delete[] pertype_option; // unregister callbacks to this fix from Atom class - if (copymode) return; - atom->delete_callback(id,0); memory->destroy(s_hist); -- GitLab