use strmatch() consistently to detect respa and verlet runstyles with optional suffix
This commit is contained in:
@ -177,7 +177,7 @@ void FixOrientECO::init() {
|
||||
MPI_Bcast(&norm_fac, 1, MPI_DOUBLE, 0, world);
|
||||
MPI_Bcast(&inv_norm_fac, 1, MPI_DOUBLE, 0, world);
|
||||
|
||||
if (strstr(update->integrate_style, "respa")) {
|
||||
if (utils::strmatch(update->integrate_style,"^respa")) {
|
||||
ilevel_respa = ((Respa *) update->integrate)->nlevels - 1;
|
||||
if (respa_level >= 0) ilevel_respa = MIN(respa_level, ilevel_respa);
|
||||
}
|
||||
@ -201,7 +201,7 @@ void FixOrientECO::init_list(int /* id */, NeighList *ptr) {
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
void FixOrientECO::setup(int vflag) {
|
||||
if (strstr(update->integrate_style, "verlet"))
|
||||
if (utils::strmatch(update->integrate_style,"^verlet"))
|
||||
post_force(vflag);
|
||||
else {
|
||||
((Respa *) update->integrate)->copy_flevel_f(ilevel_respa);
|
||||
|
||||
Reference in New Issue
Block a user