]> AND Public Git Repository - simgrid.git/blobdiff - src/smpi/bindings/smpi_pmpi_win.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix ampi example by not cleaning the tracing submodule before the actor end
[simgrid.git] / src / smpi / bindings / smpi_pmpi_win.cpp
index 6bbeef2215318f428e7aa27e2ec3a665ad82c561..c833206a805831d29b78d85971d6e0b23a4bd30b 100644 (file)
@@ -839,9 +839,13 @@ int PMPI_Win_free_keyval(int* keyval) {
 }
 
 MPI_Win PMPI_Win_f2c(MPI_Fint win){
+  if(win==-1)
+    return MPI_WIN_NULL;
   return static_cast<MPI_Win>(simgrid::smpi::Win::f2c(win));
 }
 
 MPI_Fint PMPI_Win_c2f(MPI_Win win){
+  if(win==MPI_WIN_NULL)
+    return -1;
   return win->c2f();
 }