Skip to content

Commit f27c1de

Browse files
author
David Wootton
committed
Add Missing MPI_F_XXX C constants
Signed-off-by: David Wootton <dwootton@us.ibm.com>
1 parent c21033e commit f27c1de

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

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

0 commit comments

Comments
 (0)