Counts and returns number of steps in file.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(h5hut_obj), | intent(inout) | :: | this |
A H5hut object |
Number of steps in file
impure function h5hut_obj_GetNSteps(this) result(val) !> Counts and returns number of steps in file. implicit none class(h5hut_obj), intent(inout) :: this !! A H5hut object integer :: val !! Number of steps in file ! Work variables character(len=str64), & allocatable :: gnames(:) ! Get number of steps in file call this%hdf5%ReadGroupNames('/',gnames) if (.not.allocated(gnames)) then this%nsteps = 0 else this%nsteps = size(gnames) end if val = this%nsteps return end function h5hut_obj_GetNSteps