update unit tests for variable command

This commit is contained in:
Axel Kohlmeyer
2022-08-25 05:48:07 -04:00
parent 9205f99373
commit 60b00bfa8f
2 changed files with 7 additions and 6 deletions

View File

@ -170,7 +170,8 @@ void Variable::set(int narg, char **arg)
// doesn't matter if variable no longer exists
if (strcmp(arg[1],"delete") == 0) {
if (narg != 2) error->all(FLERR,"Illegal variable command: expected 2 argument but found {}", narg);
if (narg != 2)
error->all(FLERR,"Illegal variable delete command: expected 2 arguments but found {}", narg);
if (find(arg[0]) >= 0) remove(find(arg[0]));
return;