IBM Books

MPI Subroutine Reference

MPI_Comm_f2c

Purpose

Returns a C handle to a communicator.

C synopsis

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

Parameters

comm
is the communicator (handle) (IN)

Description

This function does not have C++ or FORTRAN bindings. MPI_Comm_f2c returns a C handle to a communicator. If comm is a valid FORTRAN handle to a communicator, MPI_Comm_f2c returns a valid C handle to that same communicator. If comm is set to the FORTRAN value MPI_COMM_NULL, MPI_Comm_f2c returns the equivalent null C handle. If comm is not a valid FORTRAN handle, MPI_Comm_f2c returns a non-valid C handle. The converted handle is returned as the function's value. There is no error detection or return code.

Errors

None.

Related information

MPI_Comm_c2f


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]