must check more thoroughly
This commit is contained in:
@ -461,13 +461,13 @@ void PairRHEO::coeff(int narg, char **arg)
|
|||||||
|
|
||||||
void PairRHEO::setup()
|
void PairRHEO::setup()
|
||||||
{
|
{
|
||||||
auto fixes = modify->get_fix_by_style("rheo");
|
auto fixes = modify->get_fix_by_style("^rheo$");
|
||||||
if (fixes.size() == 0) error->all(FLERR, "Need to define fix rheo to use pair rheo");
|
if (fixes.size() == 0) error->all(FLERR, "Need to define fix rheo to use pair rheo");
|
||||||
if (fixes.size() > 1) error->all(FLERR, "Must have only one fix rheo defined");
|
if (fixes.size() > 1) error->all(FLERR, "Must have only one fix rheo defined");
|
||||||
fix_rheo = dynamic_cast<FixRHEO *>(fixes[0]);
|
fix_rheo = dynamic_cast<FixRHEO *>(fixes[0]);
|
||||||
|
|
||||||
// Currently only allow one instance of fix rheo/pressure
|
// Currently only allow one instance of fix rheo/pressure
|
||||||
fixes = modify->get_fix_by_style("rheo/pressure");
|
fixes = modify->get_fix_by_style("^rheo/pressure$");
|
||||||
if (fixes.size() == 0) error->all(FLERR, "Need to define fix rheo/pressure to use pair rheo");
|
if (fixes.size() == 0) error->all(FLERR, "Need to define fix rheo/pressure to use pair rheo");
|
||||||
if (fixes.size() > 1) error->all(FLERR, "Must have only one fix rheo/pressure defined");
|
if (fixes.size() > 1) error->all(FLERR, "Must have only one fix rheo/pressure defined");
|
||||||
fix_pressure = dynamic_cast<FixRHEOPressure *>(fixes[0]);
|
fix_pressure = dynamic_cast<FixRHEOPressure *>(fixes[0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user