more direct version of clearing out loaded plugins

This commit is contained in:
Axel Kohlmeyer
2021-10-19 08:27:49 -04:00
parent 81a5beb8cc
commit 1cd0551197

View File

@ -51,6 +51,10 @@
#include "update.h" #include "update.h"
#include "version.h" #include "version.h"
#if defined(LMP_PLUGIN)
#include "plugin.h"
#endif
#include <cctype> #include <cctype>
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>
@ -911,7 +915,7 @@ void LAMMPS::destroy()
{ {
// must wipe out all plugins first, if configured // must wipe out all plugins first, if configured
#if defined(LMP_PLUGIN) #if defined(LMP_PLUGIN)
input->one("plugin clear"); plugin_clear(this);
#endif #endif
delete update; delete update;
update = nullptr; update = nullptr;