Skip to content
Snippets Groups Projects
Commit 2686b7f8 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

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

parent d3a863e7
No related branches found
No related tags found
No related merge requests found
...@@ -121,12 +121,9 @@ void FixReaxCBonds::setup(int vflag) ...@@ -121,12 +121,9 @@ void FixReaxCBonds::setup(int vflag)
void FixReaxCBonds::init() void FixReaxCBonds::init()
{ {
reaxc = (PairReaxC *) force->pair_match("reax/c",1); reaxc = (PairReaxC *) force->pair_match("reax/c",0);
if (reaxc == NULL)
reaxc = (PairReaxC *) force->pair_match("reax/c/kk",1);
if (reaxc == NULL) error->all(FLERR,"Cannot use fix reax/c/bonds without " 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");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment