forked from lijiext/lammps
match reax/c pair style variants against prefix and not full name
This commit is contained in:
parent
3025996407
commit
9222278fb5
|
@ -43,9 +43,7 @@ ComputeSpecAtom::ComputeSpecAtom(LAMMPS *lmp, int narg, char **arg) :
|
|||
else size_peratom_cols = nvalues;
|
||||
|
||||
// Initiate reaxc
|
||||
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);
|
||||
|
||||
pack_choice = new FnPtrPack[nvalues];
|
||||
|
||||
|
|
|
@ -298,10 +298,7 @@ void FixReaxCSpecies::init()
|
|||
if (atom->tag_enable == 0)
|
||||
error->all(FLERR,"Cannot use fix reax/c/species unless atoms have IDs");
|
||||
|
||||
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/species without "
|
||||
"pair_style reax/c");
|
||||
|
||||
|
|
Loading…
Reference in New Issue