From 9cb8a6205e8b693e745aa53b8111138242ee5ab2 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 13 Aug 2021 06:24:39 -0400 Subject: [PATCH] apply "no" argument correctly --- src/EXTRA-FIX/fix_gld.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/EXTRA-FIX/fix_gld.cpp b/src/EXTRA-FIX/fix_gld.cpp index 34ed43301e..2e30882206 100644 --- a/src/EXTRA-FIX/fix_gld.cpp +++ b/src/EXTRA-FIX/fix_gld.cpp @@ -132,6 +132,7 @@ FixGLD::FixGLD(LAMMPS *lmp, int narg, char **arg) : error->all(FLERR, "Illegal fix gld command"); } if (strcmp(arg[iarg+1],"no") == 0) { + zeroflag = 0; } else if (strcmp(arg[iarg+1],"yes") == 0) { zeroflag = 1; } else { @@ -144,6 +145,7 @@ FixGLD::FixGLD(LAMMPS *lmp, int narg, char **arg) : error->all(FLERR, "Illegal fix gld command"); } if (strcmp(arg[iarg+1],"no") == 0) { + freezeflag = 0; } else if (strcmp(arg[iarg+1],"yes") == 0) { freezeflag = 1; for (int i = 0; i < atom->nlocal; i++) {