Update CheckPointRestart.cpp to add comments and appease Hong

This commit is contained in:
Mrockwell2 2024-12-11 13:03:22 -06:00 committed by GitHub
parent fd0b1e2b18
commit 080b6ecf87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -336,7 +336,8 @@ void Trick::CheckPointRestart::load_checkpoint(std::string file_name) {
message_publish(MSG_WARNING, msg_format.c_str(), message_publish(MSG_WARNING, msg_format.c_str(),
file_name.c_str(), simModeCharString(mode), mode); 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(); the_exec->freeze();
auto_freeze = true; auto_freeze = true;
} }