X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b0e0e572e64d092bd2be3a6ac5dfbaabd5de20b8..9d5b713b15c81fb2b2d40419993f47de5c7d48b8:/src/smpi/mpi/smpi_win.cpp diff --git a/src/smpi/mpi/smpi_win.cpp b/src/smpi/mpi/smpi_win.cpp index 8eebb2118b..216a200d1c 100644 --- a/src/smpi/mpi/smpi_win.cpp +++ b/src/smpi/mpi/smpi_win.cpp @@ -182,8 +182,7 @@ void Win::set_name(const char* name){ int Win::fence(int assert) { XBT_DEBUG("Entering fence"); - if (opened_ == 0) - opened_=1; + opened_++; if (not (assert & MPI_MODE_NOPRECEDE)) { // This is not the first fence => finalize what came before bar_->wait();