Skip to content

Commit 58b875c

Browse files
dalcinljeffhammond
authored andcommitted
Make MPI_F08_status in C match the layout of type(MPI_Status) in Fortran
1 parent 2aa76cf commit 58b875c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mpi.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,10 @@ enum {
188188
};
189189

190190
typedef struct {
191-
MPI_Fint mpi_val[MPI_F_STATUS_SIZE];
191+
MPI_Fint MPI_SOURCE;
192+
MPI_Fint MPI_TAG;
193+
MPI_Fint MPI_ERROR;
194+
MPI_Fint MPI_internal[5];
192195
} MPI_F08_status;
193196

194197
// Error classes

0 commit comments

Comments
 (0)