improve error messages by printing unrecognized property

This commit is contained in:
Axel Kohlmeyer
2021-06-08 10:58:12 -04:00
parent a32e682697
commit b8236c6402
6 changed files with 13 additions and 13 deletions

View File

@ -215,7 +215,7 @@ void PairTable::settings(int narg, char **arg)
else if (strcmp(arg[0],"linear") == 0) tabstyle = LINEAR;
else if (strcmp(arg[0],"spline") == 0) tabstyle = SPLINE;
else if (strcmp(arg[0],"bitmap") == 0) tabstyle = BITMAP;
else error->all(FLERR,"Unknown table style in pair_style command");
else error->all(FLERR,"Unknown table style in pair_style command: {}", arg[0]);
tablength = utils::inumeric(FLERR,arg[1],false,lmp);
if (tablength < 2) error->all(FLERR,"Illegal number of pair table entries");