From d79c42ac41e3e12448860ef87ecd5f58df10f546 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 24 Aug 2021 22:20:23 -0400 Subject: [PATCH] improve error messages for incorrect/inconsistent table data --- src/pair_table.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pair_table.cpp b/src/pair_table.cpp index f064d56377..c6bf50cef9 100644 --- a/src/pair_table.cpp +++ b/src/pair_table.cpp @@ -291,9 +291,8 @@ void PairTable::coeff(int narg, char **arg) rlo = tb->rlo; rhi = tb->rhi; } - if (tb->cut <= rlo || tb->cut > rhi) - error->all(FLERR,"Invalid pair table cutoff"); - if (rlo <= 0.0) error->all(FLERR,"Invalid pair table cutoff"); + if (tb->cut <= rlo || tb->cut > rhi) error->all(FLERR, "Pair table cutoff outside of table"); + if (rlo <= 0.0) error->all(FLERR, "Invalid pair table lower boundary"); // match = 1 if don't need to spline read-in tables // this is only the case if r values needed by final tables