update unit tests for variable command
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user