Rate This Document
Findability
Accuracy
Completeness
Readability

Handle Conversion

Function Syntax

  • Convert a C handle to a Fortran handle.

    MPI_File_c2f(MPI_File file)

    PMPI_File_c2f(MPI_File file)

  • Convert a Fortran handle to a C handle.

    MPI_File_f2c(MPI_Fint file)

    PMPI_File_f2c(MPI_Fint file)

Parameters

Parameter

Description

Value Range

Input/Output

file

C or Fortran handle

Non-negative

Input

Return Value

  • Success: Fortran or C handle
  • Failure: NULL

Notes

MPI_File_c2f and MPI_File_f2c can convert only file handles.