X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5fb901f5fcaf78cadb8dfa0d20a0ed1f710a712e..f8a4ffb5f85196f2cdcb0dbf9dcce167d20fde30:/src/smpi/include/smpi_win.hpp diff --git a/src/smpi/include/smpi_win.hpp b/src/smpi/include/smpi_win.hpp index ef7eb7ea41..b20bfa9a08 100644 --- a/src/smpi/include/smpi_win.hpp +++ b/src/smpi/include/smpi_win.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2020. The SimGrid Team. +/* Copyright (c) 2010-2021. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -54,9 +54,11 @@ public: int attach (void *base, MPI_Aint size); int detach (const void *base); void get_name(char* name, int* length) const; + std::string name() const override {return name_.empty() ? std::string("MPI_Win") : name_;} void get_group( MPI_Group* group); void set_name(const char* name); int rank() const; + MPI_Comm comm() const; int dynamic() const; int start(MPI_Group group, int assert); int post(MPI_Group group, int assert);