Commit 035279de authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

correct logic bug in bufix for fix tmd

(cherry picked from commit 267c1ec95783782a7a15132921a9f62737311d18)
parent e2c7acab
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -460,9 +460,9 @@ void FixTMD::readfile(char *file)
      else
        n = sscanf(bufptr,TAGINT_FORMAT " %lg %lg %lg",&itag,&x,&y,&z);

      if (n < 0 && me == 0) {
        error->warning(FLERR,"Ignoring empty or incorrectly formatted"
                             " line in target file");
      if (n < 0) {
        if (me == 0) error->warning(FLERR,"Ignoring empty or incorrectly"
                                    " formatted line in target file");
        bufptr = next + 1;
        continue;
      }