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
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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");

}