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