Update pair_srp.cpp

This commit is contained in:
Jacob Gissinger
2024-08-13 18:49:53 -04:00
committed by GitHub
parent 726311f8d2
commit 35cf16b109

View File

@ -397,6 +397,7 @@ void PairSRP::coeff(int narg, char **arg)
error->all(FLERR,"PairSRP: Incorrect args for pair coeff"); error->all(FLERR,"PairSRP: Incorrect args for pair coeff");
if (!allocated) allocate(); if (!allocated) allocate();
if (btype_str.size() > 0)
btype = utils::expand_type_int(FLERR, btype_str, Atom::BOND, lmp); btype = utils::expand_type_int(FLERR, btype_str, Atom::BOND, lmp);
if ((btype > atom->nbondtypes) || (btype <= 0)) if ((btype > atom->nbondtypes) || (btype <= 0))
error->all(FLERR,"Illegal pair_style command"); error->all(FLERR,"Illegal pair_style command");