X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/656a95e66788776b5ad1ce798a66d6507a76aff0..4a4884ead9a3d55f9247a3facc7b310f1a0fe942:/src/smpi/mpi/smpi_topo.cpp diff --git a/src/smpi/mpi/smpi_topo.cpp b/src/smpi/mpi/smpi_topo.cpp index 424e3496ea..b79cefc5d3 100644 --- a/src/smpi/mpi/smpi_topo.cpp +++ b/src/smpi/mpi/smpi_topo.cpp @@ -80,7 +80,8 @@ Topo_Cart::Topo_Cart(MPI_Comm comm_old, int ndims, const int dims[], const int p } else { if(comm_cart != nullptr){ if (rank == 0) { - *comm_cart = new Comm(new Group(MPI_COMM_SELF->group()), this); + MPI_Group group = new Group(MPI_COMM_SELF->group()); + *comm_cart = new Comm(group, this); } else { *comm_cart = MPI_COMM_NULL; }