use strmatch() consistently to detect respa and verlet runstyles with optional suffix
This commit is contained in:
@ -90,7 +90,7 @@ void FixEnforce2D::init()
|
||||
|
||||
void FixEnforce2D::setup(int vflag)
|
||||
{
|
||||
if (strstr(update->integrate_style,"verlet"))
|
||||
if (utils::strmatch(update->integrate_style,"^verlet"))
|
||||
post_force(vflag);
|
||||
else {
|
||||
int nlevels_respa = ((Respa *) update->integrate)->nlevels;
|
||||
|
||||
Reference in New Issue
Block a user