MPI_Comm_c2f(3)

NAME
MPI_Comm_c2f - Convert a C MPI communicator into a FORTRAN MPI communicator

SYNOPSIS
#include <mpi.h>
MPI_Fint MPI_Comm_c2f(MPI_Comm comm);

#include <pmpi.h>
MPI_Fint PMPI_Comm_c2f(MPI_Comm comm);

INPUT PARAMETER
comm
    - communicator handle from C (handle)

RETURN VALUE
FORTRAN communicator handle (handle)

DESCRIPTION
The MPI_Comm_c2f() function is used to convert a C communicator handle comm, into a FORTRAN integer-sized communicator handle. This function will never raise an error. Since this function is compiled inline for performance reasons, a profiler will not be able to hook it. (In this MPI implementation, the C and FORTRAN handles are identical for this type of handle.) PMPI_Comm_f2c() is the profiling version of this function.

SEE ALSO
MPI_Comm_f2c(3)