correcting memory issue in SPIN/compute_spin.cpp

removing incorrect line in compute_property_atom.cpp
This commit is contained in:
Julien Tranchida
2022-09-21 09:34:30 +02:00
parent 62b0024425
commit 7e8e40fefa
2 changed files with 1 additions and 2 deletions

View File

@ -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");

View File

@ -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;