use strmatch() consistently to detect respa and verlet runstyles with optional suffix

This commit is contained in:
Axel Kohlmeyer
2021-03-30 18:30:22 -04:00
parent eea2f45a95
commit 183b30abd7
123 changed files with 177 additions and 178 deletions

View File

@ -112,7 +112,7 @@ void FixSpringChunk::init()
if (strcmp(idchunk,ccom->idchunk) != 0)
error->all(FLERR,"Fix spring chunk chunkID not same as comID chunkID");
if (strstr(update->integrate_style,"respa")) {
if (utils::strmatch(update->integrate_style,"^respa")) {
ilevel_respa = ((Respa *) update->integrate)->nlevels-1;
if (respa_level >= 0) ilevel_respa = MIN(respa_level,ilevel_respa);
}
@ -122,7 +122,7 @@ void FixSpringChunk::init()
void FixSpringChunk::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(ilevel_respa);