X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5a97de8c98502af9f74cfceb924fa02e0fd80925..336c071af62d0d9e3b4a445cfb2a834287fe722f:/src/simix/smx_environment.c diff --git a/src/simix/smx_environment.c b/src/simix/smx_environment.c index 4754e715bb..6d1435210f 100644 --- a/src/simix/smx_environment.c +++ b/src/simix/smx_environment.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2007-2014. The SimGrid Team. +/* Copyright (c) 2007-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -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 */