apply utils::logical() to more commands
This commit is contained in:
@ -128,15 +128,11 @@ FixWall::FixWall(LAMMPS *lmp, int narg, char **arg) :
|
||||
iarg += 2;
|
||||
} else if (strcmp(arg[iarg],"fld") == 0) {
|
||||
if (iarg+2 > narg) error->all(FLERR,"Illegal fix wall command");
|
||||
if (strcmp(arg[iarg+1],"no") == 0) fldflag = 0;
|
||||
else if (strcmp(arg[iarg+1],"yes") == 0) fldflag = 1;
|
||||
else error->all(FLERR,"Illegal fix wall command");
|
||||
fldflag = utils::logical(FLERR,arg[iarg+1],false,lmp);
|
||||
iarg += 2;
|
||||
} else if (strcmp(arg[iarg],"pbc") == 0) {
|
||||
if (iarg+2 > narg) error->all(FLERR,"Illegal fix wall command");
|
||||
if (strcmp(arg[iarg+1],"yes") == 0) pbcflag = 1;
|
||||
else if (strcmp(arg[iarg+1],"no") == 0) pbcflag = 0;
|
||||
else error->all(FLERR,"Illegal fix wall command");
|
||||
pbcflag = utils::logical(FLERR,arg[iarg+1],false,lmp);
|
||||
iarg += 2;
|
||||
} else error->all(FLERR,"Illegal fix wall command");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user