|
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. |
15 | 13 | * $COPYRIGHT$ |
16 | | - * |
| 14 | + * |
17 | 15 | * Additional copyrights may follow |
18 | | - * |
| 16 | + * |
19 | 17 | * $HEADER$ |
20 | 18 | */ |
21 | 19 |
|
@@ -104,11 +102,12 @@ void ompi_waitall_f(MPI_Fint *count, MPI_Fint *array_of_requests, |
104 | 102 | c_ierr = MPI_Waitall(OMPI_FINT_2_INT(*count), c_req, c_status); |
105 | 103 | if (NULL != ierr) *ierr = OMPI_INT_2_FINT(c_ierr); |
106 | 104 |
|
107 | | - if (MPI_SUCCESS == c_ierr && !OMPI_IS_FORTRAN_STATUSES_IGNORE(array_of_statuses)) { |
| 105 | + if (MPI_SUCCESS == c_ierr) { |
108 | 106 | for (i = 0; i < OMPI_FINT_2_INT(*count); ++i) { |
109 | 107 | array_of_requests[i] = c_req[i]->req_f_to_c_index; |
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))]); |
| 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))]); |
112 | 111 | } |
113 | 112 | } |
114 | 113 | } |
|
0 commit comments