Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix stupidly broken indexing in SIMIX_process_parallel_execute()
[simgrid.git] / src / simix / smx_host.cpp
index 5a7f0fa..f0d4fdd 100644 (file)
@@ -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;