Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Getting rid off surf_network_model global
[simgrid.git] / src / surf / host_clm03.cpp
index de2d979..340dc2a 100644 (file)
@@ -21,8 +21,10 @@ void surf_host_model_init_current_default()
 void surf_host_model_init_compound()
 {
   xbt_assert(surf_cpu_model_pm, "No CPU model defined yet!");
-  xbt_assert(surf_network_model, "No network model defined yet!");
-  surf_host_model = new simgrid::surf::HostCLM03Model();
+  /* FIXME[donassolo]: this smells bad, but works
+   * (the constructor saves its pointer in all_existing_models and models_by_type :O).
+   * We need a manager for these models */
+  new simgrid::surf::HostCLM03Model();
 }
 
 namespace simgrid {