1
1

Update to r11332. This seems like a slightly safer fix.

This commit was SVN r11358.

The following SVN revision numbers were found above:
  r11332 --> open-mpi/ompi@4f984056ac
Этот коммит содержится в:
Jeff Squyres 2006-08-23 13:46:05 +00:00
родитель e39f0096a0
Коммит fd9a94434d
2 изменённых файлов: 4 добавлений и 2 удалений

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

@ -9,6 +9,7 @@
* University of Stuttgart. All rights reserved. * University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California. * Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved. * All rights reserved.
* Copyright (c) 2006 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -107,7 +108,7 @@ void mpi_testsome_f(MPI_Fint *incount, MPI_Fint *array_of_requests,
if (!OMPI_IS_FORTRAN_STATUSES_IGNORE(array_of_statuses)) { if (!OMPI_IS_FORTRAN_STATUSES_IGNORE(array_of_statuses)) {
for (i = 0; i < OMPI_FINT_2_INT(*outcount); ++i) { for (i = 0; i < OMPI_FINT_2_INT(*outcount); ++i) {
if (!OMPI_IS_FORTRAN_STATUS_IGNORE(&array_of_statuses[i])) { if (!OMPI_IS_FORTRAN_STATUS_IGNORE(&array_of_statuses[i])) {
MPI_Status_c2f(&c_status[i], &array_of_statuses[i * 5]); MPI_Status_c2f(&c_status[i], &array_of_statuses[i * sizeof(MPI_Status)]);
} }
} }
} }

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

@ -9,6 +9,7 @@
* University of Stuttgart. All rights reserved. * University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California. * Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved. * All rights reserved.
* Copyright (c) 2006 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -109,7 +110,7 @@ void mpi_waitsome_f(MPI_Fint *incount, MPI_Fint *array_of_requests,
if (!OMPI_IS_FORTRAN_STATUSES_IGNORE(array_of_statuses)) { if (!OMPI_IS_FORTRAN_STATUSES_IGNORE(array_of_statuses)) {
for (i = 0; i < OMPI_FINT_2_INT(*incount); ++i) { for (i = 0; i < OMPI_FINT_2_INT(*incount); ++i) {
if (!OMPI_IS_FORTRAN_STATUS_IGNORE(&array_of_statuses[i])) { if (!OMPI_IS_FORTRAN_STATUS_IGNORE(&array_of_statuses[i])) {
MPI_Status_c2f(&c_status[i], &array_of_statuses[i * 5]); MPI_Status_c2f(&c_status[i], &array_of_statuses[i * sizeof(MPI_Status)]);
} }
} }
} }