Skip to content

Latest commit

 

History

History
69 lines (41 loc) · 1.1 KB

MPI_File_close.3.rst

File metadata and controls

69 lines (41 loc) · 1.1 KB

MPI_File_close

:ref:`MPI_File_close` |mdash| Closes a file (collective).

SYNTAX

C Syntax

#include <mpi.h>

int MPI_File_close(MPI_File *fh)

Fortran Syntax

USE MPI
! or the older form: INCLUDE 'mpif.h'
MPI_FILE_CLOSE(FH, IERROR)
     INTEGER FH, IERROR

Fortran 2008 Syntax

USE mpi_f08
MPI_File_close(fh, ierror)
     TYPE(MPI_File), INTENT(INOUT) :: fh
     INTEGER, OPTIONAL, INTENT(OUT) :: ierror

INPUT/OUTPUT PARAMETER

  • fh: File handle (handle).

OUTPUT PARAMETER

  • ierror: Fortran only: Error status (integer).

DESCRIPTION

:ref:`MPI_File_close` first synchronizes file state, then closes the file associated with fh. :ref:`MPI_File_close` is a collective routine. The user is responsible for ensuring that all outstanding requests associated with fh have completed before calling :ref:`MPI_File_close`.

ERRORS