simplify compatibility check for fix reax/c/bonds with pair styles

This commit is contained in:
Axel Kohlmeyer 2017-06-09 14:39:52 -04:00
parent d3a863e7af
commit 2686b7f830
1 changed files with 2 additions and 5 deletions

View File

@ -121,12 +121,9 @@ void FixReaxCBonds::setup(int vflag)
void FixReaxCBonds::init()
{
reaxc = (PairReaxC *) force->pair_match("reax/c",1);
if (reaxc == NULL)
reaxc = (PairReaxC *) force->pair_match("reax/c/kk",1);
reaxc = (PairReaxC *) force->pair_match("reax/c",0);
if (reaxc == NULL) error->all(FLERR,"Cannot use fix reax/c/bonds without "
"pair_style reax/c");
"pair_style reax/c, reax/c/kk, or reax/c/omp");
}