X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6760cb07d6b57be16928d95339d71e57c4e24f36..6e604bae957c88e7d4375ec965935473f359d9ea:/src/simix/smx_environment.c diff --git a/src/simix/smx_environment.c b/src/simix/smx_environment.c index dd51dd0914..8f60fcc24a 100644 --- a/src/simix/smx_environment.c +++ b/src/simix/smx_environment.c @@ -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(); }