tweak coeff argument parsing settings for lj/class2/coul/long
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user