Sets the current step in file, and possibly create a new one, if this step does not exist yet.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(h5hut_obj), | intent(inout) | :: | this |
A H5hut object |
||
| integer, | intent(in) | :: | step |
Step to select |
impure subroutine h5hut_obj_SetStep(this,step) !> Sets the current step in file, and possibly create ! a new one, if this step does not exist yet. implicit none class(h5hut_obj), intent(inout) :: this !! A H5hut object integer, intent(in) :: step !! Step to select ! Build step name write(this%step_name,fmt='(a,i0,a)') '/Step#',step-1,'/' ! Add to file if not there yet if (step.gt.this%nsteps) call this%hdf5%CreateGroup(this%step_name) return end subroutine h5hut_obj_SetStep