A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix the fix of the fix of testsome.
[simgrid.git]
/
src
/
smpi
/
bindings
/
smpi_f77_request.cpp
diff --git
a/src/smpi/bindings/smpi_f77_request.cpp
b/src/smpi/bindings/smpi_f77_request.cpp
index
f36f095
..
7e128bc
100644
(file)
--- a/
src/smpi/bindings/smpi_f77_request.cpp
+++ b/
src/smpi/bindings/smpi_f77_request.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2010-201
8
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2010-201
9
. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
@@
-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;
}
simgrid::smpi::Request::free_f(requests[indices[i]]);
requests[indices[i]]=MPI_FORTRAN_REQUEST_NULL;
}
+ indices[i]++;
}
xbt_free(reqs);
}
}
xbt_free(reqs);
}
@@
-275,10
+276,11
@@
void mpi_testsome_ (int* incount, int* requests, int* outcount, int* indices, M
}
*ierr = MPI_Testsome(*incount, reqs, outcount, indices, FORT_STATUSES_IGNORE(statuses));
for(i=0;i<*incount;i++){
}
*ierr = MPI_Testsome(*incount, reqs, outcount, indices, FORT_STATUSES_IGNORE(statuses));
for(i=0;i<*incount;i++){
- if(
indices[i] &&
reqs[indices[i]]==MPI_REQUEST_NULL){
+ if(reqs[indices[i]]==MPI_REQUEST_NULL){
simgrid::smpi::Request::free_f(requests[indices[i]]);
requests[indices[i]]=MPI_FORTRAN_REQUEST_NULL;
}
simgrid::smpi::Request::free_f(requests[indices[i]]);
requests[indices[i]]=MPI_FORTRAN_REQUEST_NULL;
}
+ indices[i]++;
}
xbt_free(reqs);
}
}
xbt_free(reqs);
}