From: Gabriel Corona Date: Tue, 12 Jan 2016 13:38:50 +0000 (+0100) Subject: Fix stupidly broken indexing in SIMIX_process_parallel_execute() X-Git-Tag: v3_13~1268 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/42d84ce6027d2a887166d9ecb95054636d4fea1d?hp=7ff60387c9140b46ec6bbcefe3897e9238bca79d Fix stupidly broken indexing in SIMIX_process_parallel_execute() --- diff --git a/src/simix/smx_host.cpp b/src/simix/smx_host.cpp index 5a7f0fa611..f0d4fdd7e3 100644 --- a/src/simix/smx_host.cpp +++ b/src/simix/smx_host.cpp @@ -341,7 +341,7 @@ smx_synchro_t SIMIX_process_parallel_execute(const char *name, * them. */ surf_host_model_t ws_model = surf_host_get_model(host_list[0]); for (i = 1; i < host_nb; i++) { - surf_host_model_t ws_model_tmp = surf_host_get_model(host_list[0]); + surf_host_model_t ws_model_tmp = surf_host_get_model(host_list[i]); if (ws_model_tmp != ws_model) { XBT_CRITICAL("mixing VMs and PMs is not supported"); DIE_IMPOSSIBLE;