use strmatch() consistently to detect respa and verlet runstyles with optional suffix
This commit is contained in:
@ -206,7 +206,7 @@ void FixGLD::init()
|
||||
dtv = update->dt;
|
||||
dtf = 0.5 * update->dt * force->ftm2v;
|
||||
|
||||
if (strstr(update->integrate_style,"respa"))
|
||||
if (utils::strmatch(update->integrate_style,"^respa"))
|
||||
step_respa = ((Respa *) update->integrate)->step;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user