delete active fixes when unloading fix style plugin

This commit is contained in:
Axel Kohlmeyer
2021-03-11 21:36:14 -05:00
parent 3d1c6b30af
commit 620dd09509

View File

@ -236,6 +236,10 @@ namespace LAMMPS_NS
lmp->force->create_pair("none",0);
}
}
} else if (pstyle == "fix") {
for (int ifix = lmp->modify->find_fix_by_style(name);
ifix >= 0; ifix = lmp->modify->find_fix_by_style(name))
lmp->modify->delete_fix(ifix);
}
// if reference count is down to zero, close DSO handle.