Skip to content

Commit b1bb988

Browse files
author
David Wootton
committed
Add Missing MPI_F_XXX C constants
Signed-off-by: David Wootton <dwootton@us.ibm.com> (cherry picked from commit f27c1de)
1 parent 67eb068 commit b1bb988

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
@@ -570,6 +570,14 @@ typedef MPI_Win_errhandler_function MPI_Win_errhandler_fn
570570
#define MPI_MAX_PSET_NAME_LEN OPAL_MAX_PSET_NAME_LEN /* max pset name len */
571571
#define MPI_MAX_STRINGTAG_LEN OPAL_MAX_STRINGTAG_LEN /* max length of string arg to comm from group funcs*/
572572

573+
/*
574+
* Constants for C code to access elements in Fortran MPI status array.
575+
*/
576+
#define MPI_F_STATUS_SIZE OMPI_FORTRAN_STATUS_SIZE /* Size of Fortran MPI status array */
577+
#define MPI_F_SOURCE 0 /* Index for MPI_SOURCE */
578+
#define MPI_F_TAG 1 /* Index for MPI_TAG */
579+
#define MPI_F_ERROR 2 /* Index for MPI_ERROR */
580+
573581
/*
574582
* Since these values are arbitrary to Open MPI, we might as well make
575583
* them the same as ROMIO for ease of mapping. These values taken

0 commit comments

Comments
 (0)