- return -1;
-}
-
-
-void surf_init(int *argc, char **argv)
-{
- if (xbt_initialized > 0)
- return;
-
- xbt_init(argc, argv);
-
- sg_config_init(argc, argv);
-
- if (MC_is_active())
- MC_memory_init();
-}
-
-void surf_exit()
-{
- simgrid::s4u::Engine::shutdown();
- for (auto const& e : storage_types) {
- const simgrid::kernel::resource::StorageType* stype = e.second;
- delete stype->properties;
- delete stype->model_properties;
- delete stype;
- }
-
- for (auto const& model : all_existing_models)
- delete model;
-
- tmgr_finalize();
- sg_platf_exit();
-
- NOW = 0; /* Just in case the user plans to restart the simulation afterward */