Synopsis

MPI_Comm MPI_Comm_f2c(MPI_Fint comm)

Input Parameters

comm

comm (None)

Description

MPI_Comm_f2c converts a Fortran communicator handle to a C communicator handle. If comm is a valid Fortran handle, the function returns a valid C handle to the same communicator. If comm equals MPI_COMM_NULL (Fortran value), the function returns a null C handle. If comm is an invalid Fortran handle, the function returns an invalid C handle.

Thread and Interrupt Safety

This routine is thread-safe. This means that this routine may be safely used by multiple threads without the need for any user-provided thread locks. However, the routine is not interrupt safe. Typically, this is due to the use of memory allocation routines such as 'malloc' or other non-MPICH runtime routines that are themselves not interrupt-safe.