use symbolic constants
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user