X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/43f7ca1cac5ab1858e318fdd6239d0a0c3b3d893..e51fd157704f026607d5ef1b79334cb2decf8d5f:/src/smpi/include/smpi_topo.hpp diff --git a/src/smpi/include/smpi_topo.hpp b/src/smpi/include/smpi_topo.hpp index d0cb5709ea..6f88d1a71f 100644 --- a/src/smpi/include/smpi_topo.hpp +++ b/src/smpi/include/smpi_topo.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2010-2018. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -17,8 +17,10 @@ namespace smpi{ class Topo { public: virtual ~Topo()=default; - protected: - MPI_Comm comm_; + MPI_Comm getComm() const { return comm_; } + void setComm(MPI_Comm comm) { comm_ = comm; } + private: + MPI_Comm comm_; }; @@ -46,7 +48,6 @@ class Topo_Cart: public Topo { class Topo_Graph: public Topo { private: int nnodes_; - int nedges_; int *index_; int *edges_; public: @@ -56,13 +57,10 @@ class Topo_Graph: public Topo { class Topo_Dist_Graph: public Topo { private: - int indegree_; int *in_; int *in_weights_; - int outdegree_; int *out_; int *out_weights_; - int is_weighted_; public: Topo_Dist_Graph(); ~Topo_Dist_Graph();