Commit dd44189d authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

fix bug in compute orientorder/atom argument parsing

parent 0ecdb998
Loading
Loading
Loading
Loading
+16 −17
Original line number Diff line number Diff line
@@ -102,7 +102,7 @@ ComputeOrientOrderAtom::ComputeOrientOrderAtom(LAMMPS *lmp, int narg, char **arg
        if (qlist[iw] > qmax) qmax = qlist[iw];
      }
      iarg += nqlist;
      if (strcmp(arg[iarg],"components") == 0) {
    } else if (strcmp(arg[iarg],"components") == 0) {
      qlcompflag = 1;
      if (iarg+2 > narg)
        error->all(FLERR,"Illegal compute orientorder/atom command");
@@ -118,7 +118,6 @@ ComputeOrientOrderAtom::ComputeOrientOrderAtom(LAMMPS *lmp, int narg, char **arg
      if (iqlcomp < 0)
        error->all(FLERR,"Illegal compute orientorder/atom command");
      iarg += 2;
      }
    } else if (strcmp(arg[iarg],"cutoff") == 0) {
      if (iarg+2 > narg)
        error->all(FLERR,"Illegal compute orientorder/atom command");