use strmatch() consistently to detect respa and verlet runstyles with optional suffix
This commit is contained in:
@ -297,7 +297,7 @@ void FixGPU::setup(int vflag)
|
||||
error->all(FLERR,
|
||||
"Cannot use neigh_modify exclude with GPU neighbor builds");
|
||||
|
||||
if (strstr(update->integrate_style,"verlet")) post_force(vflag);
|
||||
if (utils::strmatch(update->integrate_style,"^verlet")) post_force(vflag);
|
||||
else {
|
||||
// In setup only, all forces calculated on GPU are put in the outer level
|
||||
((Respa *) update->integrate)->copy_flevel_f(_nlevels_respa-1);
|
||||
|
||||
Reference in New Issue
Block a user