X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5eb856761d5f073b07eac25c05012cfa8075e1f1..cf6eca29ed0c04dd6f2e5d1efdac635c64006ff1:/src/smpi/smpi_topo.hpp diff --git a/src/smpi/smpi_topo.hpp b/src/smpi/smpi_topo.hpp index 007e01bc18..f4ce792510 100644 --- a/src/smpi/smpi_topo.hpp +++ b/src/smpi/smpi_topo.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2015. The SimGrid Team. +/* Copyright (c) 2010-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -22,6 +22,8 @@ namespace simgrid{ namespace smpi{ class Topo { + public: + virtual ~Topo()=default; protected: MPI_Comm comm_; }; @@ -44,6 +46,7 @@ class Topo_Cart: public Topo { int rank(int* coords, int* rank); int shift(int direction, int disp, int *rank_source, int *rank_dest) ; int dim_get(int *ndims); + static int Dims_create(int nnodes, int ndims, int dims[]); }; @@ -72,11 +75,6 @@ class Topo_Dist_Graph: public Topo { ~Topo_Dist_Graph(); }; -/* - * This is a utility function, no need to have anything in the lower layer for this at all - */ -extern int Dims_create(int nnodes, int ndims, int dims[]); - } }