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