use strmatch() consistently to detect respa and verlet runstyles with optional suffix
This commit is contained in:
@ -134,7 +134,7 @@ void Run::command(int narg, char **arg)
|
||||
error->all(FLERR,"Run command stop value is before end of run");
|
||||
}
|
||||
|
||||
if (!preflag && strstr(update->integrate_style,"respa"))
|
||||
if (!preflag && utils::strmatch(update->integrate_style,"^respa"))
|
||||
error->all(FLERR,"Run flag 'pre no' not compatible with r-RESPA");
|
||||
|
||||
// if nevery, make copies of arg strings that are commands
|
||||
|
||||
Reference in New Issue
Block a user