final chunk of changes to apply utils::logical()

This commit is contained in:
Axel Kohlmeyer
2021-09-23 07:30:40 -04:00
parent 914f035475
commit f641b1c659
18 changed files with 76 additions and 112 deletions

View File

@ -136,13 +136,12 @@ FixGPU::FixGPU(LAMMPS *lmp, int narg, char **arg) :
while (iarg < narg) {
if (strcmp(arg[iarg],"neigh") == 0) {
if (iarg+2 > narg) error->all(FLERR,"Illegal package gpu command");
if (strcmp(arg[iarg+1],"yes") == 0) _gpu_mode = GPU_NEIGH;
else if (strcmp(arg[iarg+1],"no") == 0) _gpu_mode = GPU_FORCE;
else if (strcmp(arg[iarg+1],"on") == 0) _gpu_mode = GPU_NEIGH;
else if (strcmp(arg[iarg+1],"off") == 0) _gpu_mode = GPU_FORCE;
else if (strcmp(arg[iarg+1],"true") == 0) _gpu_mode = GPU_NEIGH;
else if (strcmp(arg[iarg+1],"false") == 0) _gpu_mode = GPU_FORCE;
else if (strcmp(arg[iarg+1],"hybrid") == 0) _gpu_mode = GPU_HYB_NEIGH;
const std::string modearg = arg[iarg+1];
if ((modearg == "yes") || (modearg == "on") || (modearg == "true"))
_gpu_mode = GPU_NEIGH;
else if ((modearg == "no") || (modearg == "off") || (modearg == "false"))
_gpu_mode = GPU_FORCE;
else if (modearg == "hybrid") _gpu_mode = GPU_HYB_NEIGH;
else error->all(FLERR,"Illegal package gpu command");
iarg += 2;
} else if (strcmp(arg[iarg],"newton") == 0) {