Functions

File Handling
[H5hut F90 API]

Functions

INTEGER *8 h5_openr (filename)
 Opens a file for reading. See H5OpenFile.
INTEGER *8 h5_openw (filename)
 Opens a file for writing in truncate mode. See H5OpenFile.
INTEGER *8 h5_opena (filename)
 Opens a file for writing in append mode. See H5OpenFile.
INTEGER *8 h5_openr_par_align (filename, mpi_communicator, align)
 Opens a parallel file for reading. See H5OpenFile.
INTEGER *8 h5_openw_par_align (filename, mpi_communicator, align, flags)
 Opens a parallel file for writing. See H5OpenFile.
INTEGER *8 h5_opena_par_align (filename, mpi_communicator, align, flags)
 Opens a parallel file for writing in append mode. See H5OpenFile.
INTEGER *8 h5_close (filehandle)
 Closes a file. See H5CloseFile.
INTEGER *8 h5_check (filehandle)
 Checks that a file is valid. See H5CheckFile.
INTEGER *8 h5_set_verbosity_level (level)
 See H5SetVerbosityLevel.

Function Documentation

INTEGER*8 h5_openr ( CHARACTER(LEN=*),intent(in)  filename )

Opens a file for reading. See H5OpenFile.

Returns:
0 on success or error code
Parameters:
filenamethe filename to open for reading
INTEGER*8 h5_openw ( CHARACTER(LEN=*),intent(in)  filename )

Opens a file for writing in truncate mode. See H5OpenFile.

Returns:
0 on success or error code
Parameters:
filenamethe filename to open for writing
INTEGER*8 h5_opena ( CHARACTER(LEN=*),intent(in)  filename )

Opens a file for writing in append mode. See H5OpenFile.

Returns:
0 on success or error code
Parameters:
filenamethe filename to open for appending
INTEGER*8 h5_openr_par_align ( CHARACTER(LEN=*),intent(in)  filename,
INTEGER,intent(in)  mpi_communicator,
align   
)

Opens a parallel file for reading. See H5OpenFile.

Flags are specified as a comma separated string that can include:

  • vfd_mpiposix - use the HDF5 MPI-POSIX virtual file driver
  • vfd_indendent - use MPI-IO in indepedent mode
Returns:
0 on success or error code
Parameters:
filenamethe filename to open for reading
mpi_communicatorthe MPI_Communicator used by the program
INTEGER*8 h5_openw_par_align ( CHARACTER(LEN=*),intent(in)  filename,
INTEGER,intent(in)  mpi_communicator,
align  ,
CHARACTER(LEN=*),intent(in)  flags 
)

Opens a parallel file for writing. See H5OpenFile.

Flags are specified as a comma separated string that can include:

  • vfd_mpiposix - use the HDF5 MPI-POSIX virtual file driver
  • vfd_indendent - use MPI-IO in indepedent mode
Returns:
0 on success or error code
Parameters:
filenamethe filename to open for writing
mpi_communicatorthe MPI_Communicator used by the program
flagsadditional flags
INTEGER*8 h5_opena_par_align ( CHARACTER(LEN=*),intent(in)  filename,
INTEGER,intent(in)  mpi_communicator,
align  ,
CHARACTER(LEN=*),intent(in)  flags 
)

Opens a parallel file for writing in append mode. See H5OpenFile.

Flags are specified as a comma separated string that can include:

  • vfd_mpiposix - use the HDF5 MPI-POSIX virtual file driver
  • vfd_indendent - use MPI-IO in indepedent mode
Returns:
0 on success or error code
Parameters:
filenamethe filename to open for appending
mpi_communicatorthe MPI_Communicator used by the program
flagsadditional flags
INTEGER*8 h5_close ( INTEGER*8,intent(in)  filehandle )

Closes a file. See H5CloseFile.

Returns:
0 on success or error code
Parameters:
filehandlethe handle returned during file open
INTEGER*8 h5_check ( INTEGER*8,intent(in)  filehandle )

Checks that a file is valid. See H5CheckFile.

Returns:
0 on success or error code
Parameters:
filehandlethe handle returned during file open
INTEGER*8 h5_set_verbosity_level ( INTEGER*8,intent(in)  level )

See H5SetVerbosityLevel.

Returns:
0 on success or error code
Parameters:
levelthe level from 0 (no output) to 5 (most detailed)