reverting changes in fix precession/spin
This commit is contained in:
@ -271,7 +271,7 @@ void FixPrecessionSpin::init()
|
||||
k2ch = k2c/hbar;
|
||||
K6h = K6/hbar;
|
||||
|
||||
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);
|
||||
}
|
||||
@ -301,7 +301,7 @@ void FixPrecessionSpin::init()
|
||||
|
||||
void FixPrecessionSpin::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);
|
||||
|
||||
Reference in New Issue
Block a user