attributes Submodule


Uses

    • h5lt
  • module~~attributes~~UsesGraph module~attributes attributes module~h5fortran h5fortran module~attributes->module~h5fortran h5lt h5lt module~attributes->h5lt module~h5fortran->h5lt iso_c_binding iso_c_binding module~h5fortran->iso_c_binding iso_fortran_env iso_fortran_env module~h5fortran->iso_fortran_env hdf5 hdf5 module~h5fortran->hdf5

Contents


Subroutines

subroutine attr_shape_check(self, dname, attr, asize, ierr)

check for matching rank, else bad reads can occur--doesn't always crash without this check check for matching size, else bad reads can occur.

Arguments

Type IntentOptional AttributesName
class(hdf5_file), intent(in) :: self
character(len=*), intent(in) :: dname
character(len=*), intent(in) :: attr
integer, intent(in) :: asize
integer, intent(out) :: ierr

Module Procedures

module procedure readattr_char module subroutine readattr_char(self, dname, attr, attrval, ierr)

NOTE: HDF5 character attributes are scalar.

Arguments

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

intent(inout) for character

integer, intent(out), optional :: ierr

module procedure readattr_num module subroutine readattr_num(self, dname, attr, attrval, ierr)

NOTE: HDF5 has 1D vector attributes for integer, float and double.

Arguments

Type IntentOptional AttributesName
class(hdf5_file), intent(in) :: self
character(len=*), intent(in) :: dname
character(len=*), intent(in) :: attr
class(*), intent(out) :: attrval(:)
integer, intent(out), optional :: ierr

module procedure writeattr_char module subroutine writeattr_char(self, dname, attr, attrval, ierr)

Arguments

Type IntentOptional AttributesName
class(hdf5_file), intent(in) :: self
character(len=*), intent(in) :: dname
character(len=*), intent(in) :: attr
character(len=*), intent(in) :: attrval
integer, intent(out), optional :: ierr

module procedure writeattr_num module subroutine writeattr_num(self, dname, attr, attrval, ierr)

NOTE: HDF5 has 1D vector attributes for integer, float and double.

Arguments

Type IntentOptional AttributesName
class(hdf5_file), intent(in) :: self
character(len=*), intent(in) :: dname
character(len=*), intent(in) :: attr
class(*), intent(in) :: attrval(:)
integer, intent(out), optional :: ierr

module procedure writeattr_char_lt module subroutine writeattr_char_lt(filename, dname, attr, attrval, ierr)

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: filename
character(len=*), intent(in) :: dname
character(len=*), intent(in) :: attr
character(len=*), intent(in) :: attrval
integer, intent(out), optional :: ierr

module procedure writeattr_num_lt module subroutine writeattr_num_lt(filename, dname, attr, attrval, ierr)

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: filename
character(len=*), intent(in) :: dname
character(len=*), intent(in) :: attr
class(*), intent(in) :: attrval(:)
integer, intent(out), optional :: ierr

module procedure readattr_char_lt module subroutine readattr_char_lt(filename, dname, attr, attrval, ierr)

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: filename
character(len=*), intent(in) :: dname
character(len=*), intent(in) :: attr
character(len=*), intent(inout) :: attrval

intent(inout) for character

integer, intent(out), optional :: ierr

module procedure readattr_num_lt module subroutine readattr_num_lt(filename, dname, attr, attrval, ierr)

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: filename
character(len=*), intent(in) :: dname
character(len=*), intent(in) :: attr
class(*), intent(out) :: attrval(:)
integer, intent(out), optional :: ierr