From 42d84ce6027d2a887166d9ecb95054636d4fea1d Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Tue, 12 Jan 2016 14:38:50 +0100 Subject: [PATCH] Fix stupidly broken indexing in SIMIX_process_parallel_execute() --- src/simix/smx_host.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1