#include <xbt/ex.hpp>
#include <simgrid/s4u/host.hpp>
-#include <src/smpi/smpi_comm.hpp>
-#include <src/smpi/smpi_group.hpp>
#include "private.h"
#include "smpi_mpi_dt_private.h"
{
if (this == MPI_COMM_UNINITIALIZED)
return smpi_process_comm_world()->destroy();
- smpi_topo_destroy(m_topo); // there's no use count on topos
+ delete m_topo; // there's no use count on topos
this->unuse();
}
}
MPI_Topology Comm::topo() {
- if (this != MPI_COMM_NULL)
- return m_topo;
- return nullptr;
+ return m_topo;
}
int Comm::size()