for consistency with utils::logical()
This commit is contained in:
@ -268,6 +268,10 @@ LAMMPS::LAMMPS(int narg, char **arg, MPI_Comm communicator) :
|
|||||||
error->universe_all(FLERR,"Invalid command-line argument");
|
error->universe_all(FLERR,"Invalid command-line argument");
|
||||||
if (strcmp(arg[iarg+1],"on") == 0) kokkosflag = 1;
|
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],"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");
|
else error->universe_all(FLERR,"Invalid command-line argument");
|
||||||
iarg += 2;
|
iarg += 2;
|
||||||
// delimit any extra args for the Kokkos instantiation
|
// delimit any extra args for the Kokkos instantiation
|
||||||
|
|||||||
Reference in New Issue
Block a user