From 7e8e40fefab36815c60534e33649106262561f8b Mon Sep 17 00:00:00 2001 From: Julien Tranchida Date: Wed, 21 Sep 2022 09:34:30 +0200 Subject: [PATCH] correcting memory issue in SPIN/compute_spin.cpp removing incorrect line in compute_property_atom.cpp --- src/SPIN/compute_spin.cpp | 2 +- src/compute_property_atom.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/SPIN/compute_spin.cpp b/src/SPIN/compute_spin.cpp index d4053284ce..fd0174cff0 100644 --- a/src/SPIN/compute_spin.cpp +++ b/src/SPIN/compute_spin.cpp @@ -43,7 +43,7 @@ using namespace MathConst; /* ---------------------------------------------------------------------- */ ComputeSpin::ComputeSpin(LAMMPS *lmp, int narg, char **arg) : - Compute(lmp, narg, arg), pair(nullptr), spin_pairs(nullptr) + Compute(lmp, narg, arg), pair(nullptr), spin_pairs(nullptr), lockprecessionspin(nullptr) { if ((narg != 3) && (narg != 4)) error->all(FLERR,"Illegal compute compute/spin command"); diff --git a/src/compute_property_atom.cpp b/src/compute_property_atom.cpp index d245817ebd..f6ed867c63 100644 --- a/src/compute_property_atom.cpp +++ b/src/compute_property_atom.cpp @@ -152,7 +152,6 @@ ComputePropertyAtom::ComputePropertyAtom(LAMMPS *lmp, int narg, char **arg) : error->all(FLERR,"Compute property/atom {} is not available", arg[iarg]); pack_choice[i] = &ComputePropertyAtom::pack_spx; } else if (strcmp(arg[iarg],"spy") == 0) { - // error->all(FLERR,"Compute property/atom {} is not available", arg[iarg]); if (!atom->sp_flag) error->all(FLERR,"Compute property/atom {} is not available", arg[iarg]); pack_choice[i] = &ComputePropertyAtom::pack_spy;