Gets number of fields in step.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(h5hut_obj), | intent(inout) | :: | this |
A H5hut object |
||
| integer, | intent(out) | :: | nfields |
Number of fields |
impure subroutine h5hut_obj_GetNFields(this,nfields) !> Gets number of fields in step. implicit none class(h5hut_obj), intent(inout) :: this !! A H5hut object integer, intent(out) :: nfields !! Number of fields ! Work variables character(len=str64), & allocatable :: gnames(:) ! Get number of steps in file call this%hdf5%ReadGroupNames(trim(adjustl(this%step_name))//'Block/',gnames) if (.not.allocated(gnames)) then nfields = 0 else nfields = size(gnames) end if return end subroutine h5hut_obj_GetNFields