Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
get rid of surf_exit()
authorSUTER Frederic <frederic.suter@cc.in2p3.fr>
Tue, 14 Sep 2021 12:08:59 +0000 (14:08 +0200)
committerSUTER Frederic <frederic.suter@cc.in2p3.fr>
Tue, 14 Sep 2021 12:08:59 +0000 (14:08 +0200)
doc/doxygen/module-surf.doc
src/include/surf/surf.hpp
src/surf/surf_interface.cpp

index 9dc285e..4cc3c6c 100644 (file)
@@ -1,4 +1,4 @@
-/** @addtogroup SURF_API
+/** @addtogroup SURF_API
   
   @section SURF_doc Surf documentation
    Surf is composed several components:
@@ -72,8 +72,6 @@
     extract them from @a surf_host_model->common_public->states.done_action_set.
     Depending on these results, you can schedule other tasks and call surf_solve() again.
 
-    When the simulation is over, just call surf_exit() to clean the memory.
-
     Have a look at the implementation of @ref MSG_API "MSG" and @ref SD_API "Simdag" to see how these module
     interact with SURF. But if you want to create a new API on top of SURF,
     we strongly recommend you to contact us before anyway.
index d5d1645..a47d40c 100644 (file)
@@ -18,7 +18,7 @@
  *  This function has to be called to initialize the common structures. Then you will have to create the environment by
  *  calling  e.g. surf_host_model_init_CM02()
  *
- *  @see surf_host_model_init_CM02(), surf_host_model_init_compound(), surf_exit()
+ *  @see surf_host_model_init_CM02(), surf_host_model_init_compound()
  */
 XBT_PUBLIC void surf_init(int* argc, char** argv); /* initialize common structures */
 
@@ -48,15 +48,6 @@ XBT_PUBLIC double surf_solve(double max_date);
  */
 XBT_PUBLIC double surf_get_clock();
 
-/** @ingroup SURF_simulation
- *  @brief Exit SURF
- *
- *  Clean everything.
- *
- *  @see surf_init()
- */
-XBT_PUBLIC void surf_exit();
-
 /* surf parse file related (public because called from a test suite) */
 XBT_PUBLIC void parse_platform_file(const std::string& file);
 
index 27ff69a..595cdf4 100644 (file)
@@ -198,13 +198,3 @@ void surf_init(int* argc, char** argv)
 
   sg_config_init(argc, argv);
 }
-
-void surf_exit()
-{
-  simgrid::s4u::Engine::shutdown();
-
-  tmgr_finalize();
-  sg_platf_exit();
-
-  NOW = 0; /* Just in case the user plans to restart the simulation afterward */
-}