From: Augustin Degomme Date: Thu, 18 Jul 2019 12:34:23 +0000 (+0200) Subject: testsome and waitsome in fortran need to fortranize indices. X-Git-Tag: v3.24~286 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/79cd61a2811607c02b5470132f4241fcf91bfe6d testsome and waitsome in fortran need to fortranize indices. --- diff --git a/src/smpi/bindings/smpi_f77_request.cpp b/src/smpi/bindings/smpi_f77_request.cpp index ec705b2196..485f062e81 100644 --- a/src/smpi/bindings/smpi_f77_request.cpp +++ b/src/smpi/bindings/smpi_f77_request.cpp @@ -215,6 +215,7 @@ void mpi_waitsome_ (int* incount, int* requests, int *outcount, int *indices, MP simgrid::smpi::Request::free_f(requests[indices[i]]); requests[indices[i]]=MPI_FORTRAN_REQUEST_NULL; } + indices[i]++; } xbt_free(reqs); } @@ -279,6 +280,7 @@ void mpi_testsome_ (int* incount, int* requests, int* outcount, int* indices, M simgrid::smpi::Request::free_f(requests[indices[i]]); requests[indices[i]]=MPI_FORTRAN_REQUEST_NULL; } + indices[i]++; } xbt_free(reqs); }