reader Submodule

This submodule is for reading 0-D..7-D data


Uses

    • hdf5
    • h5lt
  • module~~reader~~UsesGraph module~reader reader module~read read module~reader->module~read h5lt h5lt module~reader->h5lt hdf5 hdf5 module~reader->hdf5 module~read->hdf5 module~h5fortran h5fortran module~read->module~h5fortran H5LT H5LT module~read->H5LT module~h5fortran->h5lt module~h5fortran->hdf5 iso_c_binding iso_c_binding module~h5fortran->iso_c_binding iso_fortran_env iso_fortran_env module~h5fortran->iso_fortran_env

Contents


Module Procedures

module procedure hdf_read_scalar module subroutine hdf_read_scalar(self, dname, value, ierr)

cast the dataset read from disk to the variable type presented by user h5f%read("/my_dataset", x) We only cast when needed to save memory. select case doesn't allow H5T_*

Arguments

Type IntentOptional AttributesName
class(hdf5_file), intent(in) :: self
character(len=*), intent(in) :: dname
class(*), intent(inout) :: value

intent(inout) for character

integer, intent(out), optional :: ierr

module procedure hdf_read_1d module subroutine hdf_read_1d(self, dname, value, ierr, istart, iend, stride)

necessary to use this present check for Intel and GCC cast the dataset read from disk to the variable type presented by user h5f%read("/my_dataset", x) We only cast when needed to save memory. select case doesn't allow H5T_*

Arguments

Type IntentOptional AttributesName
class(hdf5_file), intent(in) :: self
character(len=*), intent(in) :: dname
class(*), intent(out) :: value(:)
integer, intent(out), optional :: ierr
integer, intent(in), optional dimension(:):: istart
integer, intent(in), optional dimension(:):: iend
integer, intent(in), optional dimension(:):: stride

module procedure hdf_read_2d module subroutine hdf_read_2d(self, dname, value, ierr, istart, iend, stride)

necessary to use this present check for Intel and GCC cast the dataset read from disk to the variable type presented by user h5f%read("/my_dataset", x) We only cast when needed to save memory. select case doesn't allow H5T_*

Arguments

Type IntentOptional AttributesName
class(hdf5_file), intent(in) :: self
character(len=*), intent(in) :: dname
class(*), intent(out) :: value(:,:)
integer, intent(out), optional :: ierr
integer, intent(in), optional dimension(:):: istart
integer, intent(in), optional dimension(:):: iend
integer, intent(in), optional dimension(:):: stride

module procedure hdf_read_3d module subroutine hdf_read_3d(self, dname, value, ierr, istart, iend, stride)

necessary to use this present check for Intel and GCC cast the dataset read from disk to the variable type presented by user h5f%read("/my_dataset", x) We only cast when needed to save memory. select case doesn't allow H5T_*

Arguments

Type IntentOptional AttributesName
class(hdf5_file), intent(in) :: self
character(len=*), intent(in) :: dname
class(*), intent(out) :: value(:,:,:)
integer, intent(out), optional :: ierr
integer, intent(in), optional dimension(:):: istart
integer, intent(in), optional dimension(:):: iend
integer, intent(in), optional dimension(:):: stride

module procedure hdf_read_4d module subroutine hdf_read_4d(self, dname, value, ierr, istart, iend, stride)

necessary to use this present check for Intel and GCC cast the dataset read from disk to the variable type presented by user h5f%read("/my_dataset", x) We only cast when needed to save memory. select case doesn't allow H5T_*

Arguments

Type IntentOptional AttributesName
class(hdf5_file), intent(in) :: self
character(len=*), intent(in) :: dname
class(*), intent(out) :: value(:,:,:,:)
integer, intent(out), optional :: ierr
integer, intent(in), optional dimension(:):: istart
integer, intent(in), optional dimension(:):: iend
integer, intent(in), optional dimension(:):: stride

module procedure hdf_read_5d module subroutine hdf_read_5d(self, dname, value, ierr, istart, iend, stride)

necessary to use this present check for Intel and GCC cast the dataset read from disk to the variable type presented by user h5f%read("/my_dataset", x) We only cast when needed to save memory. select case doesn't allow H5T_*

Arguments

Type IntentOptional AttributesName
class(hdf5_file), intent(in) :: self
character(len=*), intent(in) :: dname
class(*), intent(out) :: value(:,:,:,:,:)
integer, intent(out), optional :: ierr
integer, intent(in), optional dimension(:):: istart
integer, intent(in), optional dimension(:):: iend
integer, intent(in), optional dimension(:):: stride

module procedure hdf_read_6d module subroutine hdf_read_6d(self, dname, value, ierr, istart, iend, stride)

necessary to use this present check for Intel and GCC cast the dataset read from disk to the variable type presented by user h5f%read("/my_dataset", x) We only cast when needed to save memory. select case doesn't allow H5T_*

Arguments

Type IntentOptional AttributesName
class(hdf5_file), intent(in) :: self
character(len=*), intent(in) :: dname
class(*), intent(out) :: value(:,:,:,:,:,:)
integer, intent(out), optional :: ierr
integer, intent(in), optional dimension(:):: istart
integer, intent(in), optional dimension(:):: iend
integer, intent(in), optional dimension(:):: stride

module procedure hdf_read_7d module subroutine hdf_read_7d(self, dname, value, ierr, istart, iend, stride)

necessary to use this present check for Intel and GCC cast the dataset read from disk to the variable type presented by user h5f%read("/my_dataset", x) We only cast when needed to save memory. select case doesn't allow H5T_*

Arguments

Type IntentOptional AttributesName
class(hdf5_file), intent(in) :: self
character(len=*), intent(in) :: dname
class(*), intent(out) :: value(:,:,:,:,:,:,:)
integer, intent(out), optional :: ierr
integer, intent(in), optional dimension(:):: istart
integer, intent(in), optional dimension(:):: iend
integer, intent(in), optional dimension(:):: stride