tweak coeff argument parsing settings for lj/class2/coul/long

This commit is contained in:
Axel Kohlmeyer
2018-12-28 17:38:55 -05:00
parent b19ee27f86
commit 3a7350575c
2 changed files with 5 additions and 2 deletions

View File

@ -216,7 +216,9 @@ void PairLJClass2CoulCut::settings(int narg, char **arg)
void PairLJClass2CoulCut::coeff(int narg, char **arg)
{
if (narg < 4 || narg > 6) error->all(FLERR,"Incorrect args for pair coefficients");
if (narg < 4 || narg > 6)
error->all(FLERR,"Incorrect args for pair coefficients");
if (!allocated) allocate();
int ilo,ihi,jlo,jhi;

View File

@ -252,8 +252,9 @@ void PairLJClass2CoulLong::settings(int narg, char **arg)
void PairLJClass2CoulLong::coeff(int narg, char **arg)
{
if (narg < 4 || narg > 6)
if (narg < 4 || narg > 5)
error->all(FLERR,"Incorrect args for pair coefficients");
if (!allocated) allocate();
int ilo,ihi,jlo,jhi;