From 8d1ba074beb7afe8f69f525140478e3ac1101a42 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 3ba3ed6d83..6f1afbcd6a 100644 --- a/src/lammps.cpp +++ b/src/lammps.cpp @@ -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;