|
5 | 5 | * Copyright (c) 2004-2005 The University of Tennessee and The University |
6 | 6 | * of Tennessee Research Foundation. All rights |
7 | 7 | * reserved. |
8 | | - * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, |
| 8 | + * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, |
9 | 9 | * University of Stuttgart. All rights reserved. |
10 | 10 | * Copyright (c) 2004-2005 The Regents of the University of California. |
11 | 11 | * All rights reserved. |
12 | 12 | * Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved. |
| 13 | + * Copyright (c) 2015 Research Organization for Information Science |
| 14 | + * and Technology (RIST). All rights reserved. |
13 | 15 | * $COPYRIGHT$ |
14 | | - * |
| 16 | + * |
15 | 17 | * Additional copyrights may follow |
16 | | - * |
| 18 | + * |
17 | 19 | * $HEADER$ |
18 | 20 | */ |
19 | 21 |
|
@@ -102,12 +104,11 @@ void ompi_waitall_f(MPI_Fint *count, MPI_Fint *array_of_requests, |
102 | 104 | c_ierr = MPI_Waitall(OMPI_FINT_2_INT(*count), c_req, c_status); |
103 | 105 | if (NULL != ierr) *ierr = OMPI_INT_2_FINT(c_ierr); |
104 | 106 |
|
105 | | - if (MPI_SUCCESS == c_ierr) { |
| 107 | + if (MPI_SUCCESS == c_ierr && !OMPI_IS_FORTRAN_STATUSES_IGNORE(array_of_statuses)) { |
106 | 108 | for (i = 0; i < OMPI_FINT_2_INT(*count); ++i) { |
107 | 109 | array_of_requests[i] = c_req[i]->req_f_to_c_index; |
108 | | - if (!OMPI_IS_FORTRAN_STATUSES_IGNORE(array_of_statuses) && |
109 | | - !OMPI_IS_FORTRAN_STATUS_IGNORE(&array_of_statuses[i])) { |
110 | | - MPI_Status_c2f( &c_status[i], &array_of_statuses[i * (sizeof(MPI_Status) / sizeof(int))]); |
| 110 | + if (!OMPI_IS_FORTRAN_STATUS_IGNORE(&array_of_statuses[i])) { |
| 111 | + MPI_Status_c2f( &c_status[i], &array_of_statuses[i * (sizeof(MPI_Status) / sizeof(int))]); |
111 | 112 | } |
112 | 113 | } |
113 | 114 | } |
|
0 commit comments