From f9e99f1f4cd8bc1a76d44c8ac560ef3ca306efe8 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 18 Oct 2021 18:04:04 -0400 Subject: [PATCH] wipe out all loaded plugins before destroying the LAMMPS instance --- src/lammps.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lammps.cpp b/src/lammps.cpp index f186615424..84a27b524f 100644 --- a/src/lammps.cpp +++ b/src/lammps.cpp @@ -909,6 +909,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;