Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix the cleanup. Sorry @agiersch for breaking everything so consistently
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 14 Mar 2022 21:08:58 +0000 (22:08 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 14 Mar 2022 21:09:15 +0000 (22:09 +0100)
src/kernel/EngineImpl.cpp

index f8bb4bc..f06eb01 100644 (file)
@@ -681,6 +681,7 @@ void EngineImpl::run(double max_date)
 
     if (cfg_breakpoint >= 0.0 && simgrid_get_clock() >= cfg_breakpoint) {
       XBT_DEBUG("Breakpoint reached (%g)", cfg_breakpoint.get());
+      cfg_breakpoint = -1.0; // Let the simulation continue without hiting the breakpoint again and again
 #ifdef SIGTRAP
       std::raise(SIGTRAP);
 #else