From 080b6ecf87c238b4bb333365ae09c052f2003427 Mon Sep 17 00:00:00 2001 From: Mrockwell2 <120338765+Mrockwell2@users.noreply.github.com> Date: Wed, 11 Dec 2024 13:03:22 -0600 Subject: [PATCH] Update CheckPointRestart.cpp to add comments and appease Hong --- .../sim_services/CheckPointRestart/CheckPointRestart.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trick_source/sim_services/CheckPointRestart/CheckPointRestart.cpp b/trick_source/sim_services/CheckPointRestart/CheckPointRestart.cpp index cf7999b4..28d8272a 100644 --- a/trick_source/sim_services/CheckPointRestart/CheckPointRestart.cpp +++ b/trick_source/sim_services/CheckPointRestart/CheckPointRestart.cpp @@ -336,7 +336,8 @@ void Trick::CheckPointRestart::load_checkpoint(std::string file_name) { message_publish(MSG_WARNING, msg_format.c_str(), file_name.c_str(), simModeCharString(mode), mode); - + // If in RUN mode, this will freeze the simulation and notify the code to unfreeze later. + // To forbid loading a checkpoint in RUN mode, remove the following two lines and the second to last line in load_checkpoint_job() the_exec->freeze(); auto_freeze = true; }