wipe out all loaded plugins before destroying the LAMMPS instance

This commit is contained in:
Axel Kohlmeyer
2021-10-18 18:04:04 -04:00
parent 4675a3b560
commit 8d1ba074be

View File

@ -911,6 +911,10 @@ void LAMMPS::init()
void LAMMPS::destroy()
{
// must wipe out all plugins first, if configured
#if defined(LMP_PLUGIN)
input->one("plugin clear");
#endif
delete update;
update = nullptr;