Skip to content
Snippets Groups Projects
Commit eaf7ed77 authored by Anders Hafreager's avatar Anders Hafreager
Browse files

Print error if pair_write does not get correct number of arguments

parent 49e83b43
No related branches found
No related tags found
No related merge requests found
......@@ -1534,7 +1534,7 @@ void Pair::virial_fdotr_compute()
void Pair::write_file(int narg, char **arg)
{
if (narg < 8) error->all(FLERR,"Illegal pair_write command");
if (narg != 8 && narg != 10) error->all(FLERR,"Illegal pair_write command");
if (single_enable == 0)
error->all(FLERR,"Pair style does not support pair_write");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment