detect if dt has been changed from default and print warning if reset by units command

This commit is contained in:
Axel Kohlmeyer
2020-09-15 10:50:44 -04:00
parent df9f0e244b
commit 2f3c73217b
6 changed files with 28 additions and 9 deletions

View File

@ -1871,6 +1871,7 @@ void Input::timestep()
{
if (narg != 1) error->all(FLERR,"Illegal timestep command");
update->dt = utils::numeric(FLERR,arg[0],false,lmp);
update->dt_default = 0;
}
/* ---------------------------------------------------------------------- */