X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ddf200da26e5f76607a92be55c34f71b1ce6acf4..96963b5500f87e9f39580ddd6b5ef0c9775e5a35:/src/smpi/smpi_global.c diff --git a/src/smpi/smpi_global.c b/src/smpi/smpi_global.c index a6c1f6f6a3..1221b7ce8d 100644 --- a/src/smpi/smpi_global.c +++ b/src/smpi/smpi_global.c @@ -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))) {