X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/90680837ebef1bd470bd846a684b28a7aff1ab90..ea02d47c2ee462e84798356e4dda87b1467e22b8:/src/smpi/mpi/smpi_win.cpp diff --git a/src/smpi/mpi/smpi_win.cpp b/src/smpi/mpi/smpi_win.cpp index bc350126b8..297dd072c3 100644 --- a/src/smpi/mpi/smpi_win.cpp +++ b/src/smpi/mpi/smpi_win.cpp @@ -78,7 +78,7 @@ Win::~Win(){ if(allocated_ !=0) xbt_free(base_); - F2C::free_f(this->c2f()); + F2C::free_f(this->f2c_id()); cleanup_attr(); } @@ -128,6 +128,11 @@ int Win::rank() const return rank_; } +MPI_Comm Win::comm() const +{ + return comm_; +} + MPI_Aint Win::size() const { return size_; @@ -520,8 +525,7 @@ int Win::post(MPI_Group group, int /*assert*/) } int Win::complete(){ - if(opened_==0) - xbt_die("Complete called on already opened MPI_Win"); + xbt_assert(opened_ != 0, "Complete called on already opened MPI_Win"); XBT_DEBUG("Entering MPI_Win_Complete"); int i = 0;