Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Renamed resource initialization functions. Now they are postfixed by a alpha-style...
[simgrid.git] / src / msg / environment.c
index e0644ec..1bb3d29 100644 (file)
@@ -60,7 +60,15 @@ src_name dst_name (link_name link_name link_name ... )
  * it looks like.
  */
 void MSG_create_environment(const char *file) {
-  surf_workstation_resource_init(file);
+  xbt_dict_cursor_t cursor = NULL;
+  char *name = NULL;
+  void *workstation = NULL;
+
+  surf_workstation_resource_init_CLM03(file);
+
+  xbt_dict_foreach(workstation_set, cursor, name, workstation) {
+    __MSG_host_create(name, workstation, NULL);
+  }
 
   return;
 }