avoid replicated code, consolidate variables and element mapping

This commit is contained in:
Axel Kohlmeyer
2021-03-27 11:10:36 -04:00
parent 47b7653d4d
commit 0b73ab96d2
89 changed files with 601 additions and 2159 deletions

View File

@ -1697,6 +1697,9 @@ void Input::pair_coeff()
error->all(FLERR,"Pair_coeff command before simulation box is defined");
if (force->pair == nullptr)
error->all(FLERR,"Pair_coeff command before pair_style is defined");
if ((narg < 2) || (force->pair->one_coeff && ((strcmp(arg[0],"*") != 0)
|| (strcmp(arg[1],"*") != 0))))
error->all(FLERR,"Incorrect args for pair coefficients");
force->pair->coeff(narg,arg);
}