Unverified Commit 00251409 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

flag which table - identified by keyword - has a warning

parent 869b09a7
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -458,25 +458,25 @@ void PairTable::read_table(Table *tb, char *file, char *keyword)
  }

  if (ferror)
    error->warning(FLERR,fmt::format("{} of {} force values in table are "
    error->warning(FLERR,fmt::format("{} of {} force values in table {} are "
                                     "inconsistent with -dE/dr.\n  Should "
                                     "only be flagged at inflection points",
                                     ferror,tb->ninput));
                                     ferror,tb->ninput,keyword));

  // warn if re-computed distance values differ from file values

  if (rerror)
    error->warning(FLERR,fmt::format("{} of {} distance values in table with "
                                     "relative error\n  over {} to "
    error->warning(FLERR,fmt::format("{} of {} distance values in table {} "
                                     "with relative error\n  over {} to "
                                     "re-computed values",
                                     rerror,tb->ninput,EPSILONR));
                                     rerror,tb->ninput,EPSILONR,keyword));

  // warn if data was read incompletely, e.g. columns were missing

  if (cerror)
    error->warning(FLERR,fmt::format("{} of {} lines in table were "
    error->warning(FLERR,fmt::format("{} of {} lines in table {} were "
                                     "incomplete\n  or could not be parsed "
                                     "completely",cerror,tb->ninput));
                                     "completely",cerror,tb->ninput,keyword));
}

/* ----------------------------------------------------------------------