Update pair_srp.cpp
This commit is contained in:
@ -397,6 +397,7 @@ void PairSRP::coeff(int narg, char **arg)
|
||||
error->all(FLERR,"PairSRP: Incorrect args for pair coeff");
|
||||
if (!allocated) allocate();
|
||||
|
||||
if (btype_str.size() > 0)
|
||||
btype = utils::expand_type_int(FLERR, btype_str, Atom::BOND, lmp);
|
||||
if ((btype > atom->nbondtypes) || (btype <= 0))
|
||||
error->all(FLERR,"Illegal pair_style command");
|
||||
|
||||
Reference in New Issue
Block a user