From 8414d23c2ba2bca9f91058103d8a50bdfe98bce1 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 12 May 2023 18:04:37 -0400 Subject: [PATCH] use symbolic constants --- src/atom.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/atom.cpp b/src/atom.cpp index 3f2f4550e9..f30ace174e 100644 --- a/src/atom.cpp +++ b/src/atom.cpp @@ -823,9 +823,9 @@ void Atom::modify_params(int narg, char **arg) if (iarg+2 > narg) utils::missing_cmd_args(FLERR, "atom_modify map", error); if (domain->box_exist) error->all(FLERR,"Atom_modify map command after simulation box is defined"); - if (strcmp(arg[iarg+1],"array") == 0) map_user = 1; - else if (strcmp(arg[iarg+1],"hash") == 0) map_user = 2; - else if (strcmp(arg[iarg+1],"yes") == 0) map_user = 3; + if (strcmp(arg[iarg+1],"array") == 0) map_user = MAP_ARRAY; + else if (strcmp(arg[iarg+1],"hash") == 0) map_user = MAP_HASH; + else if (strcmp(arg[iarg+1],"yes") == 0) map_user = MAP_YES; else error->all(FLERR,"Illegal atom_modify map command argument {}", arg[iarg+1]); map_style = map_user; iarg += 2;