Make testsome similar to waitsome.
This commit was SVN r21846.
Этот коммит содержится в:
родитель
a0c26fd715
Коммит
4d8afc8fb0
@ -71,9 +71,6 @@ void mpi_testsome_f(MPI_Fint *incount, MPI_Fint *array_of_requests,
|
|||||||
MPI_Request *c_req;
|
MPI_Request *c_req;
|
||||||
MPI_Status *c_status;
|
MPI_Status *c_status;
|
||||||
int i;
|
int i;
|
||||||
#if OMPI_SIZEOF_FORTRAN_INTEGER != SIZEOF_INT
|
|
||||||
int int_c;
|
|
||||||
#endif
|
|
||||||
OMPI_SINGLE_NAME_DECL(outcount);
|
OMPI_SINGLE_NAME_DECL(outcount);
|
||||||
OMPI_ARRAY_NAME_DECL(array_of_indices);
|
OMPI_ARRAY_NAME_DECL(array_of_indices);
|
||||||
|
|
||||||
@ -97,12 +94,8 @@ void mpi_testsome_f(MPI_Fint *incount, MPI_Fint *array_of_requests,
|
|||||||
OMPI_ARRAY_NAME_CONVERT(array_of_indices),
|
OMPI_ARRAY_NAME_CONVERT(array_of_indices),
|
||||||
c_status));
|
c_status));
|
||||||
|
|
||||||
#if OMPI_SIZEOF_FORTRAN_INTEGER != SIZEOF_INT
|
|
||||||
OMPI_SINGLE_INT_2_FINT(outcount);
|
OMPI_SINGLE_INT_2_FINT(outcount);
|
||||||
int_c = OMPI_FINT_2_INT(*incount);
|
OMPI_ARRAY_INT_2_FINT(array_of_indices, *incount);
|
||||||
OMPI_ARRAY_INT_2_FINT(array_of_indices, int_c);
|
|
||||||
*incount = OMPI_INT_2_FINT(int_c);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (MPI_SUCCESS == OMPI_FINT_2_INT(*ierr)) {
|
if (MPI_SUCCESS == OMPI_FINT_2_INT(*ierr)) {
|
||||||
if (MPI_UNDEFINED != OMPI_FINT_2_INT(*outcount)) {
|
if (MPI_UNDEFINED != OMPI_FINT_2_INT(*outcount)) {
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user