X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d64b23f264fa43f785c688073c66297a7c475c40..d92bb5e90dbe8bd7eead32aba6941a4341fcf204:/src/simix/smx_environment.c diff --git a/src/simix/smx_environment.c b/src/simix/smx_environment.c index 4754e715bb..a591570401 100644 --- a/src/simix/smx_environment.c +++ b/src/simix/smx_environment.c @@ -45,15 +45,15 @@ void SIMIX_create_environment(const char *file) void SIMIX_post_create_environment(void) { - void **workstation = NULL; + void **host = NULL; void **storage = NULL; xbt_lib_cursor_t cursor = NULL; char *name = NULL; /* Create host at SIMIX level */ - xbt_lib_foreach(host_lib, cursor, name, workstation) { - if(workstation[SURF_WKS_LEVEL]) - SIMIX_host_create(name, workstation[SURF_WKS_LEVEL], NULL); + xbt_lib_foreach(host_lib, cursor, name, host) { + if(host[SURF_HOST_LEVEL]) + SIMIX_host_create(name); } /* Create storage at SIMIX level */