remove NULL option for reset_timestep

This commit is contained in:
Axel Kohlmeyer
2022-05-04 16:21:06 -04:00
parent 81bb4bfc23
commit ba3aa8fab5
3 changed files with 4 additions and 14 deletions

View File

@ -459,11 +459,10 @@ void Update::reset_timestep(int narg, char **arg)
{
if (narg < 1) utils::missing_cmd_args(FLERR, "reset_timestep", error);
if (!utils::strmatch(arg[0], "^NULL$"))
reset_timestep(utils::bnumeric(FLERR, arg[0], false, lmp), true);
reset_timestep(utils::bnumeric(FLERR, arg[0], false, lmp), true);
if (narg > 1) {
if (utils::strmatch(arg[1], "^time$")) {
if (strcmp(arg[1], "time") == 0) {
if (narg < 3) utils::missing_cmd_args(FLERR, "reset_timestep time", error);
atimestep = ntimestep;
atime = utils::numeric(FLERR, arg[2], false, lmp);