Gets number of data points in step. H5HUT assumes that all datasets have the same number of points, thus we return the number of points of the first dataset we find.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(h5hut_obj), | intent(inout) | :: | this |
A H5hut object |
||
| integer, | intent(out) | :: | npoints |
Number of data points |
impure subroutine h5hut_obj_GetNPoints(this,npoints) !> Gets number of data points in step. ! H5HUT assumes that all datasets have the same number of points, thus ! we return the number of points of the first dataset we find. use hdf5 implicit none class(h5hut_obj), intent(inout) :: this !! A H5hut object integer, intent(out) :: npoints !! Number of data points ! Work variables character(len=str64), & allocatable :: dnames(:) ! Get number of steps in file call this%hdf5%ReadDatasetNames(this%step_name,dnames) if (.not.allocated(dnames)) then npoints = 0 else npoints = this%hdf5%GetNPoints(this%step_name,trim(adjustl(dnames(1)))) end if return end subroutine h5hut_obj_GetNPoints