From 846c8ff228785997e7b3a9219a77e5d72ba1eeee Mon Sep 17 00:00:00 2001 From: Giacomo Fiorin Date: Mon, 1 May 2023 11:08:12 -0400 Subject: [PATCH] Delete objects quietly, unless explicitly requested via script (including VMD) --- src/colvarmodule.cpp | 2 -- src/colvarscript_commands.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/colvarmodule.cpp b/src/colvarmodule.cpp index 78199a648..97b4f69f9 100644 --- a/src/colvarmodule.cpp +++ b/src/colvarmodule.cpp @@ -1247,8 +1247,6 @@ colvarmodule::~colvarmodule() int colvarmodule::reset() { - cvm::log("Resetting the Collective Variables module.\n"); - parse->clear(); // Iterate backwards because we are deleting the elements as we go diff --git a/src/colvarscript_commands.h b/src/colvarscript_commands.h index f2aa1e1b9..6dd63d82d 100644 --- a/src/colvarscript_commands.h +++ b/src/colvarscript_commands.h @@ -541,6 +541,7 @@ CVSCRIPT(cv_reset, "Delete all internal configuration", 0, 0, "", + cvm::log("Resetting the Collective Variables module."); return script->module()->reset(); )