compile with -O3 if debug is disabled, compile with -Wall in always
This commit is contained in:
@@ -0,0 +1,215 @@
|
||||
! Declaration of subroutines for Fortran Bindings
|
||||
|
||||
!!!!!!!! File Opening and Closing !!!!!!!!
|
||||
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_file_f
|
||||
!! Opens a file for reading. See \ref H5OpenFile
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_openr ( filename )
|
||||
CHARACTER(LEN=*), INTENT(IN) :: filename !< the filename to open for reading
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_file_f
|
||||
!! Opens a file for writing in truncate mode. See \ref H5OpenFile
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_openw ( filename )
|
||||
CHARACTER(LEN=*), INTENT(IN) :: filename !< the filename to open for writing
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_file_f
|
||||
!! Opens a file for writing in append mode. See \ref H5OpenFile
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_opena ( filename )
|
||||
CHARACTER(LEN=*), INTENT(IN) :: filename !< the filename to open for appending
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_file_f
|
||||
!! Opens a parallel file for reading. See \ref H5OpenFile
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_openr_par ( filename, mpi_communicator )
|
||||
CHARACTER(LEN=*), INTENT(IN) :: filename !< the filename to open for reading
|
||||
INTEGER, INTENT(IN) :: mpi_communicator !< the MPI communicator used by the program
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_file_f
|
||||
!! Opens a parallel file for writing in truncate mode. See \ref H5OpenFile
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_openw_par ( filename, mpi_communicator )
|
||||
CHARACTER(LEN=*), INTENT(IN) :: filename !< the filename to open for writing
|
||||
INTEGER, INTENT(IN) :: mpi_communicator !< the MPI_Communicator used by the program
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_file_f
|
||||
!! Opens a parallel file for writing in append mode. See \ref H5OpenFile
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_opena_par ( filename, mpi_communicator )
|
||||
CHARACTER(LEN=*), INTENT(IN) :: filename !< the filename to open for appending
|
||||
INTEGER, INTENT(IN) :: mpi_communicator !< the MPI_Communicator used by the program
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_file_f
|
||||
!! Opens a file for reading and specifies an HDF5 alignment.
|
||||
!! See \ref H5OpenFileAlign
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_openr_align ( filename, align )
|
||||
CHARACTER(LEN=*), INTENT(IN) :: filename !< the filename to open for reading
|
||||
INTEGER*8, INTENT(IN) :: align !< alignment value in bytes
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_file_f
|
||||
!! Opens a file for writing in truncate mode and specifies an HDF5 alignment.
|
||||
!! See \ref H5OpenFileAlign
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_openw_align ( filename, align )
|
||||
CHARACTER(LEN=*), INTENT(IN) :: filename !< the filename to open for writing
|
||||
INTEGER*8, INTENT(IN) :: align !< alignment value in bytes
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_file_f
|
||||
!! Opens a file for writing in append mode and specifies an HDF5 alignment.
|
||||
!! See \ref H5OpenFileAlign
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_opena_align ( filename, align )
|
||||
CHARACTER(LEN=*), INTENT(IN) :: filename !< the filename to open for appending
|
||||
INTEGER*8, INTENT(IN) :: align !< alignment value in bytes
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_file_f
|
||||
!! Opens a parallel file for reading and specifies an HDF5 alignment.
|
||||
!! See \ref H5OpenFileAlign
|
||||
!!
|
||||
!! Flags are specified as a comma separated string that can include:
|
||||
!!
|
||||
!! - \c fs_lustre - enable optimizations for the Lustre file system
|
||||
!! - \c vfd_mpiposix - use the HDF5 MPI-POSIX virtual file driver
|
||||
!! - \c vfd_mpio_ind - use MPI-IO in indepedent mode
|
||||
!!
|
||||
!! See \ref H5OpenFileAlign
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_openr_par_align ( filename, mpi_communicator, align, flags )
|
||||
CHARACTER(LEN=*), INTENT(IN) :: filename !< the filename to open for reading
|
||||
INTEGER, INTENT(IN) :: mpi_communicator !< the MPI_Communicator used by the program
|
||||
INTEGER*8, INTENT(IN) :: align !< alignment value in bytes
|
||||
CHARACTER(LEN=*), INTENT(IN) :: flags !< additional flags
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_file_f
|
||||
!! Opens a parallel file for writing in truncate mode and specifies
|
||||
!! an HDF5 alignment.
|
||||
!!
|
||||
!! Flags are specified as a comma separated string that can include:
|
||||
!!
|
||||
!! - \c fs_lustre - enable optimizations for the Lustre file system
|
||||
!! - \c vfd_mpiposix - use the HDF5 MPI-POSIX virtual file driver
|
||||
!! - \c vfd_mpio_ind - use MPI-IO in indepedent mode
|
||||
!!
|
||||
!! See \ref H5OpenFileAlign
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_openw_par_align ( filename, mpi_communicator, align, flags )
|
||||
CHARACTER(LEN=*), INTENT(IN) :: filename !< the filename to open for writing
|
||||
INTEGER, INTENT(IN) :: mpi_communicator !< the MPI_Communicator used by the program
|
||||
INTEGER*8, INTENT(IN) :: align !< alignment value in bytes
|
||||
CHARACTER(LEN=*), INTENT(IN) :: flags !< additional flags
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_file_f
|
||||
!! Opens a parallel file for writing in append mode and specifies
|
||||
!! an HDF5 alignment.
|
||||
!!
|
||||
!! Flags are specified as a comma separated string that can include:
|
||||
!!
|
||||
!! - \c fs_lustre - enable optimizations for the Lustre file system
|
||||
!! - \c vfd_mpiposix - use the HDF5 MPI-POSIX virtual file driver
|
||||
!! - \c vfd_mpio_ind - use MPI-IO in indepedent mode
|
||||
!!
|
||||
!! See \ref H5OpenFileAlign
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_opena_par_align ( filename, mpi_communicator, align, flags )
|
||||
CHARACTER(LEN=*), INTENT(IN) :: filename !< the filename to open for appending
|
||||
INTEGER, INTENT(IN) :: mpi_communicator !< the MPI_Communicator used by the program
|
||||
INTEGER*8, INTENT(IN) :: align !< alignment value in bytes
|
||||
CHARACTER(LEN=*), INTENT(IN) :: flags !< additional flags
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_file_f
|
||||
!! Closes a file. See \ref H5CloseFile
|
||||
!! \return 0 on success or error code
|
||||
INTEGER*8 FUNCTION h5_close ( filehandle )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_file_f
|
||||
!! Close HDF5 library. See \ref H5Finalize
|
||||
!! \return \c H5_SUCCESS or \c H5_FAILURE
|
||||
INTEGER*8 FUNCTION h5_finalize ()
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_file_f
|
||||
!! Checks that a file is valid. See \ref H5CheckFile
|
||||
!! \return 0 on success or error code
|
||||
INTEGER*8 FUNCTION h5_check ( filehandle )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
END FUNCTION
|
||||
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_model_f
|
||||
!! See \ref H5SetStep
|
||||
!! \return 0 on success or error code
|
||||
INTEGER*8 FUNCTION h5_setstep (filehandle,step)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
INTEGER*8, INTENT(IN) :: step !< a timestep value >= 1
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_model_f
|
||||
!! See \ref H5GetStep
|
||||
!! \return the the current step or \c H5_FAILURE
|
||||
INTEGER*8 FUNCTION h5_getstep (filehandle)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_model_f
|
||||
!! See \ref H5GetNumSteps
|
||||
!! \return the number of steps or error code
|
||||
INTEGER*8 FUNCTION h5_getnsteps (filehandle)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_error_f
|
||||
!! See \ref H5SetVerbosityLevel
|
||||
!! \return 0 on success or error code
|
||||
INTEGER*8 FUNCTION h5_set_verbosity_level ( level )
|
||||
INTEGER*8, INTENT(IN) :: level !< the level from 0 (no output) to 5 (most detailed)
|
||||
END FUNCTION
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
! _ _ _ _
|
||||
! __| | __ _| |_ __ _ _ __ ___ ___ __| | ___| |
|
||||
! / _` |/ _` | __/ _` | | '_ ` _ \ / _ \ / _` |/ _ \ |
|
||||
! | (_| | (_| | || (_| | | | | | | | (_) | (_| | __/ |
|
||||
! \__,_|\__,_|\__\__,_| |_| |_| |_|\___/ \__,_|\___|_|
|
||||
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_model_f
|
||||
!! See \ref H5Block3dSetView
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_setview ( filehandle, i_start, i_end, j_start, j_end, k_start, k_end )
|
||||
INTEGER*8, INTENT(IN) :: filehandle
|
||||
INTEGER*8, INTENT(IN) :: i_start
|
||||
INTEGER*8, INTENT(IN) :: i_end
|
||||
INTEGER*8, INTENT(IN) :: j_start
|
||||
INTEGER*8, INTENT(IN) :: j_end
|
||||
INTEGER*8, INTENT(IN) :: k_start
|
||||
INTEGER*8, INTENT(IN) :: k_end
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_model_f
|
||||
!! See \ref H5Block3dGetView
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_getview ( filehandle, i_start, i_end, j_start, j_end, k_start, k_end )
|
||||
INTEGER*8, INTENT(IN) :: filehandle
|
||||
INTEGER*8, INTENT(OUT) :: i_start
|
||||
INTEGER*8, INTENT(OUT) :: i_end
|
||||
INTEGER*8, INTENT(OUT) :: j_start
|
||||
INTEGER*8, INTENT(OUT) :: j_end
|
||||
INTEGER*8, INTENT(OUT) :: k_start
|
||||
INTEGER*8, INTENT(OUT) :: k_end
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_model_f
|
||||
!! See \ref H5Block3dGetReducedView
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_getreducedview ( filehandle, i_start, i_end, j_start, j_end, k_start, k_end )
|
||||
INTEGER*8, INTENT(IN) :: filehandle
|
||||
INTEGER*8, INTENT(OUT) :: i_start
|
||||
INTEGER*8, INTENT(OUT) :: i_end
|
||||
INTEGER*8, INTENT(OUT) :: j_start
|
||||
INTEGER*8, INTENT(OUT) :: j_end
|
||||
INTEGER*8, INTENT(OUT) :: k_start
|
||||
INTEGER*8, INTENT(OUT) :: k_end
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_model_f
|
||||
!! See \ref H5Block3dHasView
|
||||
!! \return rank of processor error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_hasview ( filehandle )
|
||||
INTEGER*8, INTENT(IN) :: filehandle
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_model_f
|
||||
!! See \ref H5Block3dSetChunk
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_setchunk ( filehandle, i, j, k )
|
||||
INTEGER*8, INTENT(IN) :: filehandle
|
||||
INTEGER*8, INTENT(IN) :: i
|
||||
INTEGER*8, INTENT(IN) :: j
|
||||
INTEGER*8, INTENT(IN) :: k
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_model_f
|
||||
!! See \ref H5BlockGetNumFields
|
||||
!! \return number of fields or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_getnumfields ( filehandle )
|
||||
INTEGER*8, INTENT(IN) :: filehandle
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_model_f
|
||||
!! See \ref H5BlockGetFieldInfo
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_getfieldinfo ( filehandle, idx, field_name, grid_rank, grid_dims, field_dims )
|
||||
INTEGER*8, INTENT(IN) :: filehandle
|
||||
INTEGER*8, INTENT(IN) :: idx
|
||||
CHARACTER(LEN=*), INTENT(OUT) :: field_name
|
||||
INTEGER*8, INTENT(OUT) :: grid_rank
|
||||
INTEGER*8, INTENT(OUT) :: grid_dims(*)
|
||||
INTEGER*8, INTENT(OUT) :: field_dims
|
||||
INTEGER*8, INTENT(OUT) :: type
|
||||
END FUNCTION
|
||||
|
||||
@@ -0,0 +1,249 @@
|
||||
|
||||
! __ _ _ _ _ _ _ _ _
|
||||
! / _(_) ___| | __| | __ _| |_| |_ _ __(_) |__ _ _| |_ ___ ___
|
||||
! | |_| |/ _ \ |/ _` | / _` | __| __| '__| | '_ \| | | | __/ _ \/ __|
|
||||
! | _| | __/ | (_| | | (_| | |_| |_| | | | |_) | |_| | || __/\__ \
|
||||
! |_| |_|\___|_|\__,_| \__,_|\__|\__|_| |_|_.__/ \__,_|\__\___||___/
|
||||
|
||||
!
|
||||
! __ _ _ _ ___ _ __ _ _
|
||||
! / _` | | | |/ _ \ '__| | | |
|
||||
! | (_| | |_| | __/ | | |_| |
|
||||
! \__, |\__,_|\___|_| \__, |
|
||||
! |_| |___/
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_attrib_f
|
||||
!! See \ref H5BlockGetNumFieldAttribs
|
||||
!! \return number of attributes or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_getnfieldattribs (filehandle, field_name)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: field_name !< name of field
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_attrib_f
|
||||
!! See \ref H5BlockGetFieldAttribInfo
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_getfieldattribinfo (filehandle, field_name, idx, attrib_name, attrib_nelems)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: field_name !< name of field
|
||||
INTEGER*8,INTENT(IN) :: idx !< index of attribute being queried
|
||||
CHARACTER(LEN=*), INTENT(OUT):: attrib_name !< name of attribute
|
||||
INTEGER*8,INTENT(OUT):: attrib_nelems !< number of elements in the attrib array
|
||||
END FUNCTION
|
||||
|
||||
! _ __ _ _
|
||||
! (_) / /__ ___| |_ _ __(_)_ __ __ _
|
||||
! | | / / _ \ / __| __| '__| | '_ \ / _` |
|
||||
! | |/ / (_) | \__ \ |_| | | | | | | (_| |
|
||||
! |_/_/ \___/ |___/\__|_| |_|_| |_|\__, |
|
||||
! |___/
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_attrib_f
|
||||
!! See \ref H5BlockWriteFieldAttribString
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_writefieldattrib_string (filehandle, field_name, attrib_name, attrib_value, attrib_nelems)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: field_name !< name of field
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_value!< attribute data to be written
|
||||
INTEGER*8, INTENT(IN) :: attrib_nelems !< number of elements in data array
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_attrib_f
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_readfieldattrib_string (filehandle, field_name, attrib_name, attrib_value)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: field_name !< name of field
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_value!< attribute data will be read into this array
|
||||
END FUNCTION
|
||||
|
||||
! _ __ _
|
||||
! (_) / /__ _ __ ___ __ _| |
|
||||
! | | / / _ \ | '__/ _ \/ _` | |
|
||||
! | |/ / (_) | | | | __/ (_| | |
|
||||
! |_/_/ \___/ |_| \___|\__,_|_|
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_attrib_f
|
||||
!!
|
||||
!! See \ref H5BlockWriteFieldAttribFloat64
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_writefieldattrib_r8 (filehandle, field_name, attrib_name, attrib_value, attrib_nelems)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: field_name !< name of field
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to write
|
||||
REAL*8, INTENT(OUT):: attrib_value(*) !< attribute data to be written
|
||||
INTEGER*8, INTENT(IN) :: attrib_nelems !< number of elements in data array
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_attrib_f
|
||||
!! See \ref H5BlockReadFieldAttribFloat64
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_readfieldattrib_r8 ( filehandle, field_name, attrib_name, attrib_value )
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: field_name !< name of field
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to read
|
||||
REAL*8, INTENT(OUT):: attrib_value(*) !< attribute data will be read into this array
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_attrib_f
|
||||
!! See \ref H5BlockWriteFieldAttribFloat32
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_writefieldattrib_r4 (filehandle, field_name, attrib_name, attrib_value, attrib_nelems)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: field_name !< name of field
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to write
|
||||
REAL*4, INTENT(OUT):: attrib_value(*) !< attribute datato be written
|
||||
INTEGER*8, INTENT(IN) :: attrib_nelems !< number of elements in data array
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_attrib_f
|
||||
!! See \ref H5BlockReadFieldAttribFloat32
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_readfieldattrib_r4 (filehandle, field_name, attrib_name, attrib_value)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: field_name !< name of field
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to read
|
||||
REAL*4, INTENT(OUT):: attrib_value(*) !< attribute data will be read into this array
|
||||
END FUNCTION
|
||||
|
||||
! _ __ _ _
|
||||
! (_) / /__ (_)_ __ | |_ ___ __ _ ___ _ __
|
||||
! | | / / _ \ | | '_ \| __/ _ \/ _` |/ _ \ '__|
|
||||
! | |/ / (_) | | | | | | || __/ (_| | __/ |
|
||||
! |_/_/ \___/ |_|_| |_|\__\___|\__, |\___|_|
|
||||
! |___/
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_attrib_f
|
||||
!! See \ref H5BlockWriteFieldAttribInt64
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_writefieldattrib_i8 (filehandle, field_name, attrib_name, attrib_value, attrib_nelems)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: field_name !< name of field
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to write
|
||||
INTEGER*8,INTENT(OUT):: attrib_value(*) !< attribute data to be written
|
||||
INTEGER*8, INTENT(IN) :: attrib_nelems !< number of elements in data array
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_attrib_f
|
||||
!! See \ref H5BlockReadFieldAttribInt64
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_readfieldattrib_i8 (filehandle, field_name, attrib_name, attrib_value)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: field_name !< name of field
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to read
|
||||
INTEGER*8,INTENT(OUT):: attrib_value(*) !< attribute data will be read into this array
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_attrib_f
|
||||
!! See \ref H5BlockWriteFieldAttribInt32
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_writefieldattrib_i4 (filehandle, field_name, attrib_name, attrib_value, attrib_nelems)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: field_name !< name of field
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to write
|
||||
INTEGER*4,INTENT(OUT):: attrib_value(*) !< attribute data to be written
|
||||
INTEGER*8, INTENT(IN) :: attrib_nelems !< number of elements in data array
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_attrib_f
|
||||
!! See \ref H5BlockReadFieldAttribInt32
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_readfieldattrib_i4 (filehandle, field_name, attrib_name, attrib_value)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: field_name !< name of field
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to read
|
||||
INTEGER*4,INTENT(OUT):: attrib_value(*) !< attribute data will be read into this array
|
||||
END FUNCTION
|
||||
|
||||
! __ _ _ _ _
|
||||
! / _(_) ___| | __| | ___ _ __ __ _ ___(_)_ __ __ _
|
||||
! | |_| |/ _ \ |/ _` | / __| '_ \ / _` |/ __| | '_ \ / _` |
|
||||
! | _| | __/ | (_| | \__ \ |_) | (_| | (__| | | | | (_| |
|
||||
! |_| |_|\___|_|\__,_| |___/ .__/ \__,_|\___|_|_| |_|\__, |
|
||||
! |_| |___/
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_attrib_f
|
||||
!! See \ref H5Block3dGetFieldSpacing
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_get_field_spacing (filehandle, name, x, y, z)
|
||||
INTEGER*8, INTENT(IN) :: filehandle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name
|
||||
REAL*8, INTENT(OUT) :: x
|
||||
REAL*8, INTENT(OUT) :: y
|
||||
REAL*8, INTENT(OUT) :: z
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_attrib_f
|
||||
!! See \ref H5Block3dSetFieldSpacing
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_set_field_spacing (filehandle, name, x, y, z)
|
||||
INTEGER*8, INTENT(IN) :: filehandle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name
|
||||
REAL*8, INTENT(IN) :: x
|
||||
REAL*8, INTENT(IN) :: y
|
||||
REAL*8, INTENT(IN) :: z
|
||||
END FUNCTION
|
||||
|
||||
! __ _ _ _ _ _
|
||||
! / _(_) ___| | __| | ___ _ __(_) __ _(_)_ __
|
||||
! | |_| |/ _ \ |/ _` | / _ \| '__| |/ _` | | '_ \
|
||||
! | _| | __/ | (_| | | (_) | | | | (_| | | | | |
|
||||
! |_| |_|\___|_|\__,_| \___/|_| |_|\__, |_|_| |_|
|
||||
! |___/
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_attrib_f
|
||||
!! See \ref H5Block3dGetFieldOrigin
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_get_field_origin (filehandle, name, x, y, z)
|
||||
INTEGER*8, INTENT(IN) :: filehandle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name
|
||||
REAL*8, INTENT(OUT) :: x
|
||||
REAL*8, INTENT(OUT) :: y
|
||||
REAL*8, INTENT(OUT) :: z
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5block_attrib_f
|
||||
!! See \ref H5Block3dSetFieldOrigin
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_set_field_origin (filehandle, name, x, y, z)
|
||||
INTEGER*8, INTENT(IN) :: filehandle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name
|
||||
REAL*8, INTENT(IN) :: x
|
||||
REAL*8, INTENT(IN) :: y
|
||||
REAL*8, INTENT(IN) :: z
|
||||
END FUNCTION
|
||||
|
||||
!> @}
|
||||
@@ -0,0 +1,181 @@
|
||||
!> \ingroup h5hut_f90_api
|
||||
!! \addtogroup h5block_data_f
|
||||
!! @{
|
||||
|
||||
!>
|
||||
!! See \ref H5Block3dWriteScalarFieldFloat64
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_write_scalar_field_r8 ( filehandle, name, buffer )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned at file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
REAL*8, INTENT(IN) :: buffer(*) !< the array of data
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! See \ref H5Block3dReadScalarFieldFloat64
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_read_scalar_field_r8 ( filehandle, name, buffer )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned at file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
REAL*8, INTENT(OUT) :: buffer(*) !< buffer to read the data into
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! See \ref H5Block3dWriteVector3dFieldFloat64
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_write_vector3d_field_r8 ( filehandle, name, x, y, z )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned at file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
REAL*8, INTENT(IN) :: x(*) !< the array of x data to write
|
||||
REAL*8, INTENT(IN) :: y(*) !< the array of y data to write
|
||||
REAL*8, INTENT(IN) :: z(*) !< the array of z data to write
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! See \ref H5Block3dReadVector3dFieldFloat64
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_read_vector3d_field_r8 ( filehandle, name, x, y, z )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned at file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
REAL*8, INTENT(OUT) :: x(*) !< buffer to read the x data into
|
||||
REAL*8, INTENT(OUT) :: y(*) !< buffer to read the y data into
|
||||
REAL*8, INTENT(OUT) :: z(*) !< buffer to read the z data into
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! See \ref H5Block3dWriteScalarFieldFloat32
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_write_scalar_field_r4 ( filehandle, name, buffer )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned at file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
REAL*4, INTENT(IN) :: buffer(*) !< the array of data
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! See \ref H5Block3dReadScalarFieldFloat32
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_read_scalar_field_r4 ( filehandle, name, buffer )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned at file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
REAL*4, INTENT(OUT) :: buffer(*) !< buffer to read the data into
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! See \ref H5Block3dWriteVector3dFieldFloat32
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_write_vector3d_field_r4 ( filehandle, name, x, y, z )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned at file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
REAL*4, INTENT(IN) :: x(*) !< the array of x data to write
|
||||
REAL*4, INTENT(IN) :: y(*) !< the array of y data to write
|
||||
REAL*4, INTENT(IN) :: z(*) !< the array of z data to write
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! See \ref H5Block3dReadVector3dFieldFloat32
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_read_vector3d_field_r4 ( filehandle, name, x, y, z )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned at file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
REAL*4, INTENT(OUT) :: x(*) !< buffer to read the x data into
|
||||
REAL*4, INTENT(OUT) :: y(*) !< buffer to read the y data into
|
||||
REAL*4, INTENT(OUT) :: z(*) !< buffer to read the z data into
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! See \ref H5Block3dWriteScalarFieldInt64
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_write_scalar_field_i8 ( filehandle, name, buffer )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned at file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
INTEGER*8, INTENT(IN) :: buffer(*) !< the array of data
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! See \ref H5Block3dReadScalarFieldInt64
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_read_scalar_field_i8 ( filehandle, name, buffer )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned at file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
INTEGER*8, INTENT(OUT) :: buffer(*) !< buffer to read the data into
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! See \ref H5Block3dWriteVector3dFieldInt64
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_write_vector3d_field_i8 ( filehandle, name, x, y, z )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned at file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
INTEGER*8, INTENT(IN) :: x(*) !< the array of x data to write
|
||||
INTEGER*8, INTENT(IN) :: y(*) !< the array of y data to write
|
||||
INTEGER*8, INTENT(IN) :: z(*) !< the array of z data to write
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! See \ref H5Block3dReadVector3dFieldInt64
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_read_vector3d_field_i8 ( filehandle, name, x, y, z )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned at file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
INTEGER*8, INTENT(OUT) :: x(*) !< buffer to read the x data into
|
||||
INTEGER*8, INTENT(OUT) :: y(*) !< buffer to read the y data into
|
||||
INTEGER*8, INTENT(OUT) :: z(*) !< buffer to read the z data into
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! See \ref H5Block3dWriteScalarFieldInt32
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_write_scalar_field_i4 ( filehandle, name, buffer )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned at file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
INTEGER*4, INTENT(IN) :: buffer(*) !< the array of data
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! See \ref H5Block3dReadScalarFieldInt32
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_read_scalar_field_i4 ( filehandle, name, buffer )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned at file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
INTEGER*4, INTENT(OUT) :: buffer(*) !< buffer to read the data into
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! See \ref H5Block3dWriteVector3dFieldInt32
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_write_vector3d_field_i4 ( filehandle, name, x, y, z )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned at file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
INTEGER*4, INTENT(IN) :: x(*) !< the array of x data to write
|
||||
INTEGER*4, INTENT(IN) :: y(*) !< the array of y data to write
|
||||
INTEGER*4, INTENT(IN) :: z(*) !< the array of z data to write
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! See \ref H5Block3dReadVector3dFieldInt32
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5bl_3d_read_vector3d_field_i4 ( filehandle, name, x, y, z )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned at file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
INTEGER*4, INTENT(OUT) :: x(*) !< buffer to read the x data into
|
||||
INTEGER*4, INTENT(OUT) :: y(*) !< buffer to read the y data into
|
||||
INTEGER*4, INTENT(OUT) :: z(*) !< buffer to read the z data into
|
||||
END FUNCTION
|
||||
|
||||
!> @}
|
||||
@@ -0,0 +1,127 @@
|
||||
!!!!!!!! Setting up the Data Model !!!!!!!!
|
||||
|
||||
|
||||
!>
|
||||
!! \ingroup h5part_model_f
|
||||
!!
|
||||
!! See \ref H5PartSetNumParticles
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5pt_setnpoints ( filehandle, npoints )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
INTEGER*8, INTENT(IN) :: npoints !< the number of particles on *this* processor
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5part_model_f
|
||||
!!
|
||||
!! See \ref H5PartSetNumParticlesStrided
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5pt_setnpoints_strided ( filehandle, npoints, stride )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
INTEGER*8, INTENT(IN) :: npoints !< the number of particles on *this* processor
|
||||
INTEGER*8, INTENT(IN) :: stride !< the stride value (e.g. the number of fields in the particle data array)
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5part_model_f
|
||||
!!
|
||||
!! See \ref H5PartGetNumDatasets
|
||||
!! \return the number of datasets or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5pt_getndatasets (filehandle)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5part_model_f
|
||||
!!
|
||||
!! See \ref H5PartGetNumParticles
|
||||
!! \return the number of particles or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5pt_getnpoints (filehandle)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5part_model_f
|
||||
!!
|
||||
!! See \ref H5PartGetDatasetName
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5pt_getdatasetname (filehandle,index,name)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
INTEGER*8, INTENT(IN) :: index !< index of dataset to query (starting from 0)
|
||||
CHARACTER(LEN=*), INTENT(OUT) :: name !< buffer to read the dataset name into
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5part_model_f
|
||||
!!
|
||||
!! See \ref H5PartGetDatasetInfo
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5pt_getdatasetinfo (filehandle, idx, name, type, num_elems)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
INTEGER*8,INTENT(IN) :: idx !< index of dataset being queried
|
||||
CHARACTER(LEN=*), INTENT(OUT):: name !< name of datset
|
||||
INTEGER*8,INTENT(OUT):: type !< type of datset
|
||||
INTEGER*8,INTENT(OUT):: num_elems !< number of elements in the dataset
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5part_model_f
|
||||
!!
|
||||
!! See \ref H5PartSetView
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5pt_setview (filehandle,start,end)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
INTEGER*8, INTENT(IN) :: start !< offset of the first particle in the view
|
||||
INTEGER*8, INTENT(IN) :: end !< offset of the last particle in the view (inclusive)
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5part_model_f
|
||||
!!
|
||||
!! See \ref H5PartSetViewIndices
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5pt_setview_indices (filehandle,indices,nelem)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
INTEGER*8, INTENT(IN) :: indices(*) !< list of indicies to select in this view
|
||||
INTEGER*8, INTENT(IN) :: nelem !< number of particles in the list
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5part_model_f
|
||||
!!
|
||||
!! See \ref H5PartResetView
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5pt_resetview (filehandle)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5part_model_f
|
||||
!!
|
||||
!! See \ref H5PartResetView
|
||||
!! \return 1 if true, 0 if false, or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5pt_hasview (filehandle)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5part_model_f
|
||||
!!
|
||||
!! See \ref H5PartGetView
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5pt_getview (filehandle,start,end)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
INTEGER*8, INTENT(OUT) :: start !< buffer to store the offset of the first particle in the view
|
||||
INTEGER*8, INTENT(OUT) :: end !< buffer to store the offset of the last particle in the view (inclusive)
|
||||
END FUNCTION
|
||||
@@ -0,0 +1,83 @@
|
||||
!!!!!!!! Reading and Writing Datasets !!!!!!!!
|
||||
|
||||
!>
|
||||
!! \ingroup h5part_data_f
|
||||
!! See \ref H5PartWriteDataFloat64
|
||||
!! \return 0 on success or error code
|
||||
INTEGER*8 FUNCTION h5pt_writedata_r8 ( filehandle, name, data )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
REAL*8, INTENT(IN) :: data(*) !< the array of float64 data to write
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5part_data_f
|
||||
!! See \ref H5PartWriteDataFloat32
|
||||
!! \return 0 on success or error code
|
||||
INTEGER*8 FUNCTION h5pt_writedata_r4 ( filehandle, name, data )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
REAL, INTENT(IN) :: data(*) !< the array of float32 data to write
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5part_data_f
|
||||
!! See \ref H5PartWriteDataInt64
|
||||
!! \return 0 on success or error code
|
||||
INTEGER*8 FUNCTION h5pt_writedata_i8 ( filehandle, name, data )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
INTEGER*8, INTENT(IN) :: data(*) !< the array of int64 data to write
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5part_data_f
|
||||
!! See \ref H5PartWriteDataInt32
|
||||
!! \return 0 on success or error code
|
||||
INTEGER*8 FUNCTION h5pt_writedata_i4 ( filehandle, name, data )
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
INTEGER, INTENT(IN) :: data(*) !< the array of int32 data to write
|
||||
END FUNCTION
|
||||
|
||||
|
||||
!>
|
||||
!! \ingroup h5part_data_f
|
||||
!! See \ref H5PartReadDataFloat64
|
||||
!! \return 0 on success or error code
|
||||
INTEGER*8 FUNCTION h5pt_readdata_r8 (filehandle,name,data)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
REAL*8, INTENT(OUT) :: data(*) !< array to read float64 data into
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5part_data_f
|
||||
!! See \ref H5PartReadDataFloat32
|
||||
!! \return 0 on success or error code
|
||||
INTEGER*8 FUNCTION h5pt_readdata_r4 (filehandle,name,data)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
REAL, INTENT(OUT) :: data(*) !< array to read float32 data into
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5part_data_f
|
||||
!! See \ref H5PartReadDataInt64
|
||||
!! \return 0 on success or error code
|
||||
INTEGER*8 FUNCTION h5pt_readdata_i8 (filehandle,name,data)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
INTEGER*8, INTENT(OUT) :: data(*) !< array to read int64 data into
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5part_data_f
|
||||
!! See \ref H5PartReadDataInt32
|
||||
!! \return 0 on success or error code
|
||||
INTEGER*8 FUNCTION h5pt_readdata_i4 (filehandle,name,data)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< the handle returned during file open
|
||||
CHARACTER(LEN=*), INTENT(IN) :: name !< the name of the dataset
|
||||
INTEGER, INTENT(OUT) :: data(*) !< array to read int32 data into
|
||||
END FUNCTION
|
||||
|
||||
@@ -0,0 +1,366 @@
|
||||
! __ _ _ _ _ _ _ _
|
||||
! / _(_) | ___ __ _| |_| |_ _ __(_) |__ _ _| |_ ___ ___
|
||||
! | |_| | |/ _ \ / _` | __| __| '__| | '_ \| | | | __/ _ \/ __|
|
||||
! | _| | | __/ | (_| | |_| |_| | | | |_) | |_| | || __/\__ \
|
||||
! |_| |_|_|\___| \__,_|\__|\__|_| |_|_.__/ \__,_|\__\___||___/
|
||||
! __ _ _ _ ___ _ __ _ _
|
||||
! / _` | | | |/ _ \ '__| | | |
|
||||
! | (_| | |_| | __/ | | |_| |
|
||||
! \__, |\__,_|\___|_| \__, |
|
||||
! |_| |___/
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5GetNumFileAttribs
|
||||
!! \return number of attributes or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_getnfileattribs (filehandle)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< file handle
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5GetFileAttribInfo
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_getfileattribinfo (filehandle, idx, attrib_name, attrib_nelem)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
INTEGER*8,INTENT(IN) :: idx !< index of attribute being queried
|
||||
CHARACTER(LEN=*), INTENT(OUT):: attrib_name !< name of attribute
|
||||
INTEGER*8,INTENT(OUT):: attrib_type !< type of attribute
|
||||
INTEGER*8,INTENT(OUT):: attrib_nelem !< number of elements in the attrib array
|
||||
END FUNCTION
|
||||
|
||||
! __ _ _ _ _ _ _ _
|
||||
! / _(_) | ___ __ _| |_| |_ _ __(_) |__ _ _| |_ ___ ___
|
||||
! | |_| | |/ _ \ / _` | __| __| '__| | '_ \| | | | __/ _ \/ __|
|
||||
! | _| | | __/ | (_| | |_| |_| | | | |_) | |_| | || __/\__ \
|
||||
! |_| |_|_|\___| \__,_|\__|\__|_| |_|_.__/ \__,_|\__\___||___/
|
||||
! _ __ _ _
|
||||
! (_) / /__ ___| |_ _ __(_)_ __ __ _
|
||||
! | | / / _ \ / __| __| '__| | '_ \ / _` |
|
||||
! | |/ / (_) | \__ \ |_| | | | | | | (_| |
|
||||
! |_/_/ \___/ |___/\__|_| |_|_| |_|\__, |
|
||||
! |___/
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5WriteFileAttribString
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_writefileattrib_string (filehandle, attrib_name, attrib_value)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to write
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_value!< attribute data to be written
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_readfileattrib_string (filehandle, attrib_name, attrib_value)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of the attribute to read
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_value!< attribute data will be read into this array
|
||||
END FUNCTION
|
||||
|
||||
! __ _ _ _ _ _ _ _
|
||||
! / _(_) | ___ __ _| |_| |_ _ __(_) |__ _ _| |_ ___ ___
|
||||
! | |_| | |/ _ \ / _` | __| __| '__| | '_ \| | | | __/ _ \/ __|
|
||||
! | _| | | __/ | (_| | |_| |_| | | | |_) | |_| | || __/\__ \
|
||||
! |_| |_|_|\___| \__,_|\__|\__|_| |_|_.__/ \__,_|\__\___||___/
|
||||
! _ __ _
|
||||
! (_) / /__ _ __ ___ __ _| |
|
||||
! | | / / _ \ | '__/ _ \/ _` | |
|
||||
! | |/ / (_) | | | | __/ (_| | |
|
||||
! |_/_/ \___/ |_| \___|\__,_|_|
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5WriteFileAttribFloat64
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_writefileattrib_r8 (filehandle, attrib_name, attrib_value, attrib_nelem)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to read
|
||||
REAL*8, INTENT(OUT):: attrib_value(*) !< attribute data to be written
|
||||
INTEGER*8, INTENT(IN) :: attrib_nelem !< number of elements in data array
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5ReadFileAttribFloat64
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_readfileattrib_r8 (filehandle, attrib_name, attrib_value)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to read
|
||||
REAL*8, INTENT(OUT):: attrib_value(*) !< attribute data will be read into this array
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5WriteFileAttribFloat32
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_writefileattrib_r4 (filehandle, attrib_name, attrib_value, attrib_nelem)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to read
|
||||
REAL*4, INTENT(OUT):: attrib_value(*) !< attribute data to be written
|
||||
INTEGER*8, INTENT(IN) :: attrib_nelem !< number of elements in data array
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5ReadFileAttribFloat32
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_readfileattrib_r4 ( filehandle, attrib_name, attrib_value )
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to read
|
||||
REAL*4, INTENT(OUT):: attrib_value(*) !< attribute data will be read into this array
|
||||
END FUNCTION
|
||||
|
||||
! __ _ _ _ _ _ _ _
|
||||
! / _(_) | ___ __ _| |_| |_ _ __(_) |__ _ _| |_ ___ ___
|
||||
! | |_| | |/ _ \ / _` | __| __| '__| | '_ \| | | | __/ _ \/ __|
|
||||
! | _| | | __/ | (_| | |_| |_| | | | |_) | |_| | || __/\__ \
|
||||
! |_| |_|_|\___| \__,_|\__|\__|_| |_|_.__/ \__,_|\__\___||___/
|
||||
! _ __ _ _
|
||||
! (_) / /__ (_)_ __ | |_ ___ __ _ ___ _ __
|
||||
! | | / / _ \ | | '_ \| __/ _ \/ _` |/ _ \ '__|
|
||||
! | |/ / (_) | | | | | | || __/ (_| | __/ |
|
||||
! |_/_/ \___/ |_|_| |_|\__\___|\__, |\___|_|
|
||||
! |___/
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5WriteFileAttribInt64
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_writefileattrib_i8 (filehandle, attrib_name, attrib_value, attrib_nelem)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to write
|
||||
INTEGER*8,INTENT(OUT):: attrib_value(*) !< attribute data to be written
|
||||
INTEGER*8, INTENT(IN) :: attrib_nelem !< number of elements in data array
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5ReadFileAttribInt64
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_readfileattrib_i8 (filehandle, attrib_name, attrib_value)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to read
|
||||
INTEGER*8,INTENT(OUT):: attrib_value(*) !< attribute data will be read into this array
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5WriteFileAttribInt32
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_writefileattrib_i4 (filehandle, attrib_name, attrib_value, attrib_nelem)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to write
|
||||
INTEGER*8,INTENT(OUT):: attrib_type !< type of attribute
|
||||
INTEGER*4,INTENT(OUT):: attrib_value(*) !< attribute data to be written
|
||||
INTEGER*8, INTENT(IN) :: attrib_nelem !< number of elements in data array
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5ReadFileAttribInt32
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_readfileattrib_i4 (filehandle, attrib_name, attrib_value)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to read
|
||||
INTEGER*4,INTENT(OUT):: attrib_value(*) !< attribute data will be read into this array
|
||||
END FUNCTION
|
||||
|
||||
! _ _ _ _ _ _
|
||||
! ___| |_ ___ _ __ __ _| |_| |_ _ __(_) |__ _ _| |_ ___ ___
|
||||
! / __| __/ _ \ '_ \ / _` | __| __| '__| | '_ \| | | | __/ _ \/ __|
|
||||
! \__ \ || __/ |_) | | (_| | |_| |_| | | | |_) | |_| | || __/\__ \
|
||||
! |___/\__\___| .__/ \__,_|\__|\__|_| |_|_.__/ \__,_|\__\___||___/
|
||||
! |_|
|
||||
! __ _ _ _ ___ _ __ _ _
|
||||
! / _` | | | |/ _ \ '__| | | |
|
||||
! | (_| | |_| | __/ | | |_| |
|
||||
! \__, |\__,_|\___|_| \__, |
|
||||
! |_| |___/
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5GetNumFileAttribs
|
||||
!! \return number of attributes or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_getnstepattribs (filehandle)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< file handle
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5GetFileAttribInfo
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_getstepattribinfo (filehandle, idx, attrib_name, attrib_nelem)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
INTEGER*8,INTENT(IN) :: idx !< index of attribute being queried
|
||||
CHARACTER(LEN=*), INTENT(OUT):: attrib_name !< name of attribute
|
||||
INTEGER*8,INTENT(OUT):: attrib_nelem !< number of elements in the attrib array
|
||||
END FUNCTION
|
||||
|
||||
! _ _ _ _ _ _
|
||||
! ___| |_ ___ _ __ __ _| |_| |_ _ __(_) |__ _ _| |_ ___ ___
|
||||
! / __| __/ _ \ '_ \ / _` | __| __| '__| | '_ \| | | | __/ _ \/ __|
|
||||
! \__ \ || __/ |_) | | (_| | |_| |_| | | | |_) | |_| | || __/\__ \
|
||||
! |___/\__\___| .__/ \__,_|\__|\__|_| |_|_.__/ \__,_|\__\___||___/
|
||||
! |_|
|
||||
! _ __ _ _
|
||||
! (_) / /__ ___| |_ _ __(_)_ __ __ _
|
||||
! | | / / _ \ / __| __| '__| | '_ \ / _` |
|
||||
! | |/ / (_) | \__ \ |_| | | | | | | (_| |
|
||||
! |_/_/ \___/ |___/\__|_| |_|_| |_|\__, |
|
||||
! |___/
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5WriteStepAttribString
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_writestepattrib_string (filehandle, attrib_name, attrib_value)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to write
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_value!< attribute data to be written
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5ReadStepAttribString
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_readstepattrib_string (filehandle, attrib_name, attrib_value)
|
||||
INTEGER*8, INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of the attribute to read
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_value!< attribute data will be read into this array
|
||||
END FUNCTION
|
||||
|
||||
! _ _ _ _ _ _
|
||||
! ___| |_ ___ _ __ __ _| |_| |_ _ __(_) |__ _ _| |_ ___ ___
|
||||
! / __| __/ _ \ '_ \ / _` | __| __| '__| | '_ \| | | | __/ _ \/ __|
|
||||
! \__ \ || __/ |_) | | (_| | |_| |_| | | | |_) | |_| | || __/\__ \
|
||||
! |___/\__\___| .__/ \__,_|\__|\__|_| |_|_.__/ \__,_|\__\___||___/
|
||||
! |_|
|
||||
! _ __ _
|
||||
! (_) / /__ _ __ ___ __ _| |
|
||||
! | | / / _ \ | '__/ _ \/ _` | |
|
||||
! | |/ / (_) | | | | __/ (_| | |
|
||||
! |_/_/ \___/ |_| \___|\__,_|_|
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5WriteStepAttribFloat64
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_writestepattrib_r8 (filehandle, attrib_name, attrib_value, attrib_nelem)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to read
|
||||
REAL*8, INTENT(OUT):: attrib_value(*) !< attribute data to be written
|
||||
INTEGER*8, INTENT(IN) :: attrib_nelem !< number of elements in data array
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5ReadStepAttribFloat64
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_readstepattrib_r8 (filehandle, attrib_name, attrib_value)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to read
|
||||
REAL*8, INTENT(OUT):: attrib_value(*) !< attribute data will be read into this array
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5WriteStepAttribFloat32
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_writestepattrib_r4 (filehandle, attrib_name, attrib_value, attrib_nelem)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to read
|
||||
REAL*4, INTENT(OUT):: attrib_value(*) !< attribute data to be written
|
||||
INTEGER*8, INTENT(IN) :: attrib_nelem !< number of elements in data array
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5ReadStepAttribFloat32
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_readstepattrib_r4 ( filehandle, attrib_name, attrib_value )
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to read
|
||||
REAL*4, INTENT(OUT):: attrib_value(*) !< attribute data will be read into this array
|
||||
END FUNCTION
|
||||
|
||||
! _ _ _ _ _ _
|
||||
! ___| |_ ___ _ __ __ _| |_| |_ _ __(_) |__ _ _| |_ ___ ___
|
||||
! / __| __/ _ \ '_ \ / _` | __| __| '__| | '_ \| | | | __/ _ \/ __|
|
||||
! \__ \ || __/ |_) | | (_| | |_| |_| | | | |_) | |_| | || __/\__ \
|
||||
! |___/\__\___| .__/ \__,_|\__|\__|_| |_|_.__/ \__,_|\__\___||___/
|
||||
! |_|
|
||||
! _ __ _ _
|
||||
! (_) / /__ (_)_ __ | |_ ___ __ _ ___ _ __
|
||||
! | | / / _ \ | | '_ \| __/ _ \/ _` |/ _ \ '__|
|
||||
! | |/ / (_) | | | | | | || __/ (_| | __/ |
|
||||
! |_/_/ \___/ |_|_| |_|\__\___|\__, |\___|_|
|
||||
! |___/
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5WriteStepAttribInt64
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_writestepattrib_i8 (filehandle, attrib_name, attrib_value, attrib_nelem)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to write
|
||||
INTEGER*8,INTENT(OUT):: attrib_value(*) !< attribute data to be written
|
||||
INTEGER*8, INTENT(IN) :: attrib_nelem !< number of elements in data array
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5ReadStepAttribInt64
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_readstepattrib_i8 (filehandle, attrib_name, attrib_value)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to read
|
||||
INTEGER*8,INTENT(OUT):: attrib_value(*) !< attribute data will be read into this array
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5WriteStepAttribInt32
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_writestepattrib_i4 (filehandle, attrib_name, attrib_value, attrib_nelem)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to write
|
||||
INTEGER*4,INTENT(OUT):: attrib_value(*) !< attribute data to be written
|
||||
INTEGER*8, INTENT(IN) :: attrib_nelem !< number of elements in data array
|
||||
END FUNCTION
|
||||
|
||||
!>
|
||||
!! \ingroup h5hut_attrib_f
|
||||
!! See \ref H5ReadStepAttribInt32
|
||||
!! \return 0 on success or error code
|
||||
!<
|
||||
INTEGER*8 FUNCTION h5_readstepattrib_i4 (filehandle, attrib_name, attrib_value)
|
||||
INTEGER*8,INTENT(IN) :: filehandle !< file handle
|
||||
CHARACTER(LEN=*), INTENT(IN) :: attrib_name !< name of attribute to read
|
||||
INTEGER*4,INTENT(OUT):: attrib_value(*) !< attribute data will be read into this array
|
||||
END FUNCTION
|
||||
@@ -0,0 +1,61 @@
|
||||
|
||||
INTEGER*8 :: H5_STRING_T
|
||||
INTEGER*8 :: H5_INT16_T
|
||||
INTEGER*8 :: H5_INT32_T
|
||||
INTEGER*8 :: H5_INT64_t
|
||||
INTEGER*8 :: H5_FLOAT32_T
|
||||
INTEGER*8 :: H5_FLOAT64_T
|
||||
|
||||
PARAMETER (H5_STRING_T = 1)
|
||||
PARAMETER (H5_INT16_T = 2)
|
||||
PARAMETER (H5_INT32_T = 3)
|
||||
PARAMETER (H5_INT64_T = 4)
|
||||
PARAMETER (H5_FLOAT32_T = 5)
|
||||
PARAMETER (H5_FLOAT64_T = 6)
|
||||
|
||||
INTEGER*8 :: H5_MAX_NAME_LEN
|
||||
PARAMETER (H5_MAX_NAME_LEN = 64)
|
||||
|
||||
INTEGER*8 :: H5_SUCCESS
|
||||
INTEGER*8 :: H5_OK
|
||||
INTEGER*8 :: H5_NOK
|
||||
INTEGER*8 :: H5_FAILURE
|
||||
INTEGER*8 :: H5_ERR_BADF
|
||||
INTEGER*8 :: H5_ERR_NOMEM
|
||||
INTEGER*8 :: H5_ERR_INVAL
|
||||
INTEGER*8 :: H5_ERR_BADFD
|
||||
|
||||
INTEGER*8 :: H5_ERR_LAYOUT
|
||||
INTEGER*8 :: H5_ERR_NOENTRY
|
||||
|
||||
INTEGER*8 :: H5_ERR_MPI
|
||||
INTEGER*8 :: H5_ERR_HDF5
|
||||
INTEGER*8 :: H5_ERR_H5
|
||||
INTEGER*8 :: H5_ERR_H5PART
|
||||
INTEGER*8 :: H5_ERR_H5BLOCK
|
||||
INTEGER*8 :: H5_ERR_H5FED
|
||||
|
||||
INTEGER*8 :: H5_ERR_INTERNAL
|
||||
INTEGER*8 :: H5_ERR_NOT_IMPLEMENTED
|
||||
|
||||
PARAMETER (H5_SUCCESS = 0)
|
||||
PARAMETER (H5_OK = H5_SUCCESS)
|
||||
PARAMETER (H5_NOK = -1)
|
||||
PARAMETER (H5_FAILURE = -2)
|
||||
PARAMETER (H5_ERR_BADF = -9)
|
||||
PARAMETER (H5_ERR_NOMEM = -12)
|
||||
PARAMETER (H5_ERR_INVAL = -22)
|
||||
PARAMETER (H5_ERR_BADFD = -77)
|
||||
|
||||
PARAMETER (H5_ERR_LAYOUT = -100)
|
||||
PARAMETER (H5_ERR_NOENTRY = -101)
|
||||
|
||||
PARAMETER (H5_ERR_MPI = -201)
|
||||
PARAMETER (H5_ERR_HDF5 = -202)
|
||||
PARAMETER (H5_ERR_H5 = -203)
|
||||
PARAMETER (H5_ERR_H5PART = -204)
|
||||
PARAMETER (H5_ERR_H5BLOCK = -205)
|
||||
PARAMETER (H5_ERR_H5FED = -206)
|
||||
|
||||
PARAMETER (H5_ERR_INTERNAL = -253)
|
||||
PARAMETER (H5_ERR_NOT_IMPLEMENTED = -254)
|
||||
Reference in New Issue
Block a user