some applications of the new function

This commit is contained in:
Axel Kohlmeyer
2021-09-19 19:05:40 -04:00
parent 860a93aa8b
commit f80259dfae
7 changed files with 30 additions and 66 deletions

View File

@ -106,11 +106,7 @@ void Rerun::command(int narg, char **arg)
iarg += 2;
} else if (strcmp(arg[iarg],"post") == 0) {
if (iarg+2 > narg) error->all(FLERR,"Illegal rerun command");
if (strcmp(arg[iarg+1],"yes") == 0) {
postflag = 1;
} else if (strcmp(arg[iarg+1],"no") == 0) {
postflag = 0;
} else error->all(FLERR,"Illegal rerun command");
postflag = utils::logical(FLERR,arg[iarg+1],false,lmp);
iarg += 2;
} else if (strcmp(arg[iarg],"dump") == 0) {
break;