Closing a File
Function Syntax
MPI_File_close(MPI_File *fh)
PMPI_File_close(MPI_File *fh)
Parameters
Parameter |
Description |
Value Range |
Input/Output |
|---|---|---|---|
*fh |
File (handle) |
Non-empty |
Input |
Return Value
- Success: MPI_SUCCESS
- Failure: An error code is returned.
Error Code
Error Code |
Description |
|---|---|
MPI_ERR_FILE |
Invalid file handle |
MPI_ERR_IO |
Other I/O errors |
MPI_ERR_OTHER |
Other errors |
Parent topic: File Operations