use strmatch() consistently to detect respa and verlet runstyles with optional suffix
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user