From: Christian Heinrich Date: Thu, 26 Oct 2017 15:24:02 +0000 (+0200) Subject: [SMPI] Moved variable declaration. X-Git-Tag: v3.18~348^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e144241627aac6cef02dbf39972e41e8c24f013a [SMPI] Moved variable declaration. It's now close to where it's used and not 100 lines above that place. --- diff --git a/src/smpi/internals/smpi_global.cpp b/src/smpi/internals/smpi_global.cpp index ed39e4a0df..6d71a0c26b 100644 --- a/src/smpi/internals/smpi_global.cpp +++ b/src/smpi/internals/smpi_global.cpp @@ -233,8 +233,6 @@ int smpi_enabled() { void smpi_global_init() { - MPI_Group group; - if (not MC_is_active()) { global_timer = xbt_os_timer_new(); xbt_os_walltimer_start(global_timer); @@ -343,6 +341,7 @@ void smpi_global_init() } //if the process was launched through smpirun script we generate a global mpi_comm_world //if not, we let MPI_COMM_NULL, and the comm world will be private to each mpi instance + MPI_Group group; if (smpirun) { group = new simgrid::smpi::Group(process_count); MPI_COMM_WORLD = new simgrid::smpi::Comm(group, nullptr);