Scroll to navigation

MPI_COMM_C2F(3) Library Function Manual MPI_COMM_C2F(3)

NAME

MPI_Comm_c2f - converts MPI_Comm to Fortran INTEGER

SYNOPSIS

MPI_Fint MPI_Comm_c2f(MPI_Comm comm)

INPUT PARAMETERS

comm

communicator (handle)

DESCRIPTION

MPI_Comm_c2f translates a C communicator handle into a Fortran handle to the same communicator. It maps a null handle into a null handle and an invalid handle into an invalid 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.

2026-11-14 MPICH