use strmatch() consistently to detect respa and verlet runstyles with optional suffix
This commit is contained in:
@ -200,10 +200,10 @@ void FixGrem::init()
|
||||
|
||||
void FixGrem::setup(int vflag)
|
||||
{
|
||||
if (strstr(update->integrate_style,"verlet"))
|
||||
if (utils::strmatch(update->integrate_style,"^verlet"))
|
||||
post_force(vflag);
|
||||
|
||||
if (strstr(update->integrate_style,"respa"))
|
||||
if (utils::strmatch(update->integrate_style,"^respa"))
|
||||
error->all(FLERR,"Run style 'respa' is not supported");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user