-/** @addtogroup SURF_API
+/** @addtogroup SURF_API
@section SURF_doc Surf documentation
Surf is composed several components:
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.
* 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 */
*/
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);
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 */
-}