1
1

MPI_STATUS_SIZE in Fortran is 5, so we need to jump by 5 integers instead

of 4 when we are finding the next MPI_STATUS in the array.

Refs trac:236

This commit was SVN r11332.

The following Trac tickets were found above:
  Ticket 236 --> https://svn.open-mpi.org/trac/ompi/ticket/236
Этот коммит содержится в:
Brian Barrett 2006-08-22 20:20:46 +00:00
родитель 1c4de419cc
Коммит 4f984056ac
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -107,7 +107,7 @@ void mpi_testsome_f(MPI_Fint *incount, MPI_Fint *array_of_requests,
if (!OMPI_IS_FORTRAN_STATUSES_IGNORE(array_of_statuses)) {
for (i = 0; i < OMPI_FINT_2_INT(*outcount); ++i) {
if (!OMPI_IS_FORTRAN_STATUS_IGNORE(&array_of_statuses[i])) {
MPI_Status_c2f(&c_status[i], &array_of_statuses[i * 4]);
MPI_Status_c2f(&c_status[i], &array_of_statuses[i * 5]);
}
}
}

Просмотреть файл

@ -109,7 +109,7 @@ void mpi_waitsome_f(MPI_Fint *incount, MPI_Fint *array_of_requests,
if (!OMPI_IS_FORTRAN_STATUSES_IGNORE(array_of_statuses)) {
for (i = 0; i < OMPI_FINT_2_INT(*incount); ++i) {
if (!OMPI_IS_FORTRAN_STATUS_IGNORE(&array_of_statuses[i])) {
MPI_Status_c2f(&c_status[i], &array_of_statuses[i * 4]);
MPI_Status_c2f(&c_status[i], &array_of_statuses[i * 5]);
}
}
}