Commit 2bf66883 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

fix bug in fix_modify respa reported by steven early strong on lammps-users

parent 2943dd5c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -139,7 +139,7 @@ void Fix::modify_params(int narg, char **arg)
    } else if (strcmp(arg[iarg],"respa") == 0) {
      if (iarg+2 > narg) error->all(FLERR,"Illegal fix_modify command");
      if (!respa_level_support) error->all(FLERR,"Illegal fix_modify command");
      int lvl = force->inumeric(FLERR,arg[1]);
      int lvl = force->inumeric(FLERR,arg[iarg+1]);
      if (lvl < 0) error->all(FLERR,"Illegal fix_modify command");
      respa_level = lvl-1;
      iarg += 2;