#include "src/kernel/resource/profile/Profile.hpp"
#include "src/surf/HostImpl.hpp"
#include "src/surf/xml/platf.hpp"
-#include "src/xbt_modinter.h" /* whether initialization was already done */
#include "surf/surf.hpp"
#include "xbt/module.h"
+#include "xbt/xbt_modinter.h" /* whether initialization was already done */
#include <fstream>
#include <string>
* Utils *
*********/
-std::vector<simgrid::kernel::resource::Model*> all_existing_models; /* to destroy models correctly */
-
simgrid::kernel::profile::FutureEvtSet future_evt_set;
std::vector<std::string> surf_path;
if (pos != table.end())
return static_cast<int>(std::distance(table.begin(), pos));
- if (table.empty())
- xbt_die("No model is valid! This is a bug.");
+ xbt_assert(not table.empty(), "No model is valid! This is a bug.");
std::string sep;
std::string name_list;
{
simgrid::s4u::Engine::shutdown();
- for (auto const& model : all_existing_models)
- delete model;
-
tmgr_finalize();
sg_platf_exit();