Skip to content

Commit 613a736

Browse files
author
David Wootton
committed
Add Missing MPI_F_XXX C constants
Signed-off-by: David Wootton <[email protected]> (cherry picked from commit f27c1de)
1 parent 1c67bf1 commit 613a736

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ompi/include/mpi.h.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,14 @@ typedef MPI_Win_errhandler_function MPI_Win_errhandler_fn
529529
#define MPI_DISTRIBUTE_NONE 2 /* not distributed */
530530
#define MPI_DISTRIBUTE_DFLT_DARG (-1) /* default distribution arg */
531531

532+
/*
533+
* Constants for C code to access elements in Fortran MPI status array.
534+
*/
535+
#define MPI_F_STATUS_SIZE OMPI_FORTRAN_STATUS_SIZE /* Size of Fortran MPI status array */
536+
#define MPI_F_SOURCE 0 /* Index for MPI_SOURCE */
537+
#define MPI_F_TAG 1 /* Index for MPI_TAG */
538+
#define MPI_F_ERROR 2 /* Index for MPI_ERROR */
539+
532540
/*
533541
* Since these values are arbitrary to Open MPI, we might as well make
534542
* them the same as ROMIO for ease of mapping. These values taken

0 commit comments

Comments
 (0)