From 0025140902b0d4f8aae0acee4da56864db700f22 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 10 Aug 2020 11:09:10 -0400 Subject: [PATCH] flag which table - identified by keyword - has a warning --- src/pair_table.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pair_table.cpp b/src/pair_table.cpp index 36eced6d3f..bd2a6be654 100644 --- a/src/pair_table.cpp +++ b/src/pair_table.cpp @@ -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)); } /* ----------------------------------------------------------------------