diff --git a/src/RHEO/pair_rheo.cpp b/src/RHEO/pair_rheo.cpp index 520a1c4470..8feac7ddcd 100644 --- a/src/RHEO/pair_rheo.cpp +++ b/src/RHEO/pair_rheo.cpp @@ -461,13 +461,13 @@ void PairRHEO::coeff(int narg, char **arg) 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() > 1) error->all(FLERR, "Must have only one fix rheo defined"); fix_rheo = dynamic_cast(fixes[0]); // 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() > 1) error->all(FLERR, "Must have only one fix rheo/pressure defined"); fix_pressure = dynamic_cast(fixes[0]);