Commit 3a735057 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

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

parent b19ee27f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;
+2 −1
Original line number Diff line number Diff line
@@ -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;