X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a2444896cc5969f2b9150b035f9ea0744e74789d..578dd56a4a07709db1922ff5edd98f0c8f3090f9:/src/surf/surf_interface.cpp diff --git a/src/surf/surf_interface.cpp b/src/surf/surf_interface.cpp index 05b3c8bb13..4b948c1e0b 100644 --- a/src/surf/surf_interface.cpp +++ b/src/surf/surf_interface.cpp @@ -16,6 +16,7 @@ #include "mc/mc.h" #include "virtual_machine.hpp" #include "src/instr/instr_private.h" // TRACE_is_enabled(). FIXME: remove by subscribing tracing to the surf signals +#include "simgrid/s4u/engine.hpp" XBT_LOG_NEW_CATEGORY(surf, "All SURF categories"); XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_kernel, surf, "Logging specific to SURF (kernel)"); @@ -348,6 +349,7 @@ void surf_exit(void) tmgr_finalize(); sg_platf_exit(); + simgrid::s4u::Engine::shutdown(); NOW = 0; /* Just in case the user plans to restart the simulation afterward */ } @@ -883,12 +885,8 @@ void Action::updateRemainingLazy(double now) } else { - xbt_assert(stateSet_ == getModel()->getRunningActionSet(), - "You're updating an action that is not running."); - - /* bogus priority, skip it */ - xbt_assert(priority_ > 0, - "You're updating an action that seems suspended."); + xbt_assert(stateSet_ == getModel()->getRunningActionSet(), "You're updating an action that is not running."); + xbt_assert(priority_ > 0, "You're updating an action that seems suspended."); } delta = now - lastUpdate_;