use strmatch() consistently to detect respa and verlet runstyles with optional suffix

This commit is contained in:
Axel Kohlmeyer
2021-03-30 18:30:22 -04:00
parent eea2f45a95
commit 183b30abd7
123 changed files with 177 additions and 178 deletions

View File

@ -319,7 +319,7 @@ void Neighbor::init()
// rRESPA cutoffs
int respa = 0;
if (update->whichflag == 1 && strstr(update->integrate_style,"respa")) {
if (update->whichflag == 1 && utils::strmatch(update->integrate_style,"^respa")) {
if (((Respa *) update->integrate)->level_inner >= 0) respa = 1;
if (((Respa *) update->integrate)->level_middle >= 0) respa = 2;
}