Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix stupidly broken indexing in SIMIX_process_parallel_execute()
authorGabriel Corona <gabriel.corona@loria.fr>
Tue, 12 Jan 2016 13:38:50 +0000 (14:38 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Tue, 12 Jan 2016 13:44:52 +0000 (14:44 +0100)
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;