Print error if pair_write does not get correct number of arguments

This commit is contained in:
Anders Hafreager 2017-03-02 21:25:27 -08:00
parent 49e83b4348
commit eaf7ed7707
1 changed files with 1 additions and 1 deletions

View File

@ -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");