improved error message

This commit is contained in:
Axel Kohlmeyer
2022-11-25 15:31:16 -05:00
parent e36a360891
commit 2e6fdf2ea3

View File

@ -821,7 +821,7 @@ void Pair::map_element2type(int narg, char **arg, bool update_setflag)
// elements = list of element names
if (narg != ntypes)
error->all(FLERR,"Incorrect args for pair coefficients");
error->all(FLERR,"Number of element to type mappings does not match number of atom types");
if (elements) {
for (i = 0; i < nelements; i++) delete[] elements[i];