From 6227396afd38c573dbdba5c5520c9f88c7ef7775 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 21 Sep 2021 14:15:23 -0400 Subject: [PATCH] for consistency with utils::logical() --- src/lammps.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lammps.cpp b/src/lammps.cpp index 89c59bec3d..bf0abbe2b1 100644 --- a/src/lammps.cpp +++ b/src/lammps.cpp @@ -268,6 +268,10 @@ LAMMPS::LAMMPS(int narg, char **arg, MPI_Comm communicator) : error->universe_all(FLERR,"Invalid command-line argument"); if (strcmp(arg[iarg+1],"on") == 0) kokkosflag = 1; else if (strcmp(arg[iarg+1],"off") == 0) kokkosflag = 0; + else if (strcmp(arg[iarg+1],"yes") == 0) kokkosflag = 1; + else if (strcmp(arg[iarg+1],"no") == 0) kokkosflag = 0; + else if (strcmp(arg[iarg+1],"1") == 0) kokkosflag = 1; + else if (strcmp(arg[iarg+1],"0") == 0) kokkosflag = 0; else error->universe_all(FLERR,"Invalid command-line argument"); iarg += 2; // delimit any extra args for the Kokkos instantiation