358. Fortran Support Through the mpif.h Include File

PreviousUpNext
Up: Fortran Support Next: Interface Specifications, Procedure Names, and the Profiling Interface Previous: Fortran Support Through the mpi Module

The use of the mpif.h include file is strongly discouraged and may be deprecated in a future version of MPI.

An MPI implementation providing a Fortran interface must provide an include file named mpif.h that can be used in a Fortran program. Within all MPI function specifications, the second of the set of two Fortran routine interface specifications is supported by this include file. This include file must:


For each MPI routine, an implementation can choose to use an implicit or explicit interface for the second Fortran binding (in deprecated routines, the first one may be omitted).

Advice to users.

Instead of using mpif.h, the use of the mpi_f08 or mpi module is strongly encouraged for the following reasons:


( End of advice to users.)

Rationale.

With MPI-3.0, the mpif.h include file was not deprecated in order to retain strong backward compatibility. Internally, mpif.h and the mpi module may be implemented so that essentialy the same library implementation of the MPI routines can be used. ( End of rationale.)


PreviousUpNext
Up: Fortran Support Next: Interface Specifications, Procedure Names, and the Profiling Interface Previous: Fortran Support Through the mpi Module


Return to MPI-3.1 Standard Index
Return to MPI Forum Home Page

(Unofficial) MPI-3.1 of June 4, 2015
HTML Generated on June 4, 2015