X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/376c140a1ae6c2336fd23f2b0ed456ebaebd316a..15f804cfddebc4fe4b305acd1c66487f2405420d:/src/smpi/mpi/smpi_topo.cpp diff --git a/src/smpi/mpi/smpi_topo.cpp b/src/smpi/mpi/smpi_topo.cpp index 058b4bd42e..424e3496ea 100644 --- a/src/smpi/mpi/smpi_topo.cpp +++ b/src/smpi/mpi/smpi_topo.cpp @@ -19,6 +19,14 @@ static int getfactors(int num, int *nfators, int **factors); namespace simgrid{ namespace smpi{ +void Topo::setComm(MPI_Comm comm) +{ + xbt_assert(not comm_); + comm_ = comm; + if (comm_) + comm_->topo_ = this; +} + /******************************************************************************* * Cartesian topologies ******************************************************************************/