Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cope with model best gtnets fit, that is latency_factor = 10.4, bandwidth_factor...
[simgrid.git] / src / smpi / smpi_global.c
index a6c1f6f..1221b7c 100644 (file)
@@ -125,16 +125,15 @@ void smpi_global_init()
        int size = SIMIX_host_get_number();
 
        /* Connect our log channels: that must be done manually under windows */
-        /* (should be done only once, not for each process) */
-       #ifdef XBT_LOG_CONNECT
-        XBT_LOG_CONNECT(smpi_base, smpi);
+#ifdef XBT_LOG_CONNECT
+       XBT_LOG_CONNECT(smpi_base, smpi);
        XBT_LOG_CONNECT(smpi_bench, smpi);
        XBT_LOG_CONNECT(smpi_kernel, smpi);
        XBT_LOG_CONNECT(smpi_mpi, smpi);
        XBT_LOG_CONNECT(smpi_receiver, smpi);
        XBT_LOG_CONNECT(smpi_sender, smpi);
        XBT_LOG_CONNECT(smpi_util, smpi);
-       #endif
+#endif
 
        smpi_global                                      = xbt_new(s_smpi_global_t, 1);
        // config variable
@@ -302,6 +301,7 @@ int smpi_run_simulation(int *argc, char **argv)
        /* Clean IO before the run */
        fflush(stdout);
        fflush(stderr);
+        SIMIX_init();
 
        while (SIMIX_solve(actions_done, actions_failed) != -1.0) {
                while ((action = xbt_fifo_pop(actions_failed))) {