]> AND Public Git Repository - simgrid.git/blobdiff - src/surf/surf_interface.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
refactoring and cosmetics
[simgrid.git] / src / surf / surf_interface.cpp
index b2257a87d93da6662a9bcc2dd3b4aa36aac99325..02dfd42156b2b263719b80f731ac71b2e46a1415 100644 (file)
@@ -321,7 +321,7 @@ void surf_exit()
 {
   TRACE_end();                  /* Just in case it was not called by the upper layer (or there is no upper layer) */
 
-  sg_host_exit();
+  simgrid::s4u::Engine::shutdown();
   sg_link_exit();
   for (auto const& e : storage_types) {
     simgrid::surf::StorageType* stype = e.second;
@@ -346,7 +346,6 @@ void surf_exit()
 
   tmgr_finalize();
   sg_platf_exit();
-  simgrid::s4u::Engine::shutdown();
 
   NOW = 0;                      /* Just in case the user plans to restart the simulation afterward */
 }