Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Chord: reproduce the scenario of the Oversim paper
[simgrid.git] / src / simix / smx_environment.c
index dd51dd0..8f60fcc 100644 (file)
@@ -38,16 +38,21 @@ void SIMIX_create_environment(const char *file)
 
   double start, end;
 
+  //First pass of platform file
+  surf_config_add_callback();
+  parse_platform_file(file);
+
   surf_config_models_setup(file);
   parse_platform_file(file);
   surf_config_models_create_elms();
   start = xbt_os_time();
-
+  /* FIXME: what time are we measuring ??? */
   end = xbt_os_time();
   DEBUG1("PARSE TIME: %lg", (end - start));
 
   xbt_dict_foreach(surf_model_resource_set(surf_workstation_model), cursor,
                    name, workstation) {
-    __SIMIX_host_create(name, workstation, NULL);
+    SIMIX_host_create(name, workstation, NULL);
   }
+  surf_presolve();
 }