X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/164535529e5d19976ed96a2ee265d5945d27a660..c126fdf651057c849b4614da3fdd76a64d9c0036:/src/msg/msg_environment.c diff --git a/src/msg/msg_environment.c b/src/msg/msg_environment.c index c263080a62..eb889cbe3d 100644 --- a/src/msg/msg_environment.c +++ b/src/msg/msg_environment.c @@ -34,16 +34,18 @@ */ void MSG_create_environment(const char *file) { + SIMIX_create_environment(file); +} + +void MSG_post_create_environment(void) { xbt_lib_cursor_t cursor; void **data; char *name; - SIMIX_create_environment(file); - /* Initialize MSG hosts */ xbt_lib_foreach(host_lib, cursor, name, data) { if(data[SIMIX_HOST_LEVEL]) - __MSG_host_create((smx_host_t)data[SIMIX_HOST_LEVEL], NULL); + __MSG_host_create((smx_host_t)data[SIMIX_HOST_LEVEL]); } }