From 75c341543a91a8cb3be2fed50feba154a9fe34fa Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 11 Jun 2025 04:05:41 -0400 Subject: [PATCH] add missing comment --- src/PLUGIN/plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PLUGIN/plugin.cpp b/src/PLUGIN/plugin.cpp index 7326563003..600d2fd8fa 100644 --- a/src/PLUGIN/plugin.cpp +++ b/src/PLUGIN/plugin.cpp @@ -412,6 +412,8 @@ void plugin_unload(const char *style, const char *name, LAMMPS *lmp) } else if (pstyle == "region") { + // must delete all region instances using this region style + for (auto &iregion : lmp->domain->get_region_by_style(name)) lmp->domain->delete_region(iregion);