Writes all solids to disk using H5HUT.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(solid_set), | intent(inout) | :: | this |
A collection of solids |
||
| integer, | intent(in) | :: | iter |
Iteration at write |
||
| real(kind=wp), | intent(in) | :: | time |
Time at write |
impure subroutine solid_set_WriteH5HUT(this,iter,time) !> Writes all solids to disk using H5HUT. implicit none class(solid_set), intent(inout) :: this !! A collection of solids integer, intent(in) :: iter !! Iteration at write real(wp), intent(in) :: time !! Time at write ! Work variables type(h5hut_obj) :: h5 !! H5hut structure integer :: n do n=1,this%count call this%p(n)%Write(iter,time) ! Add some attributes call h5%Initialize(trim(adjustl(this%p(n)%write_file)),"RW",this%parallel) call h5%WriteAttributes('Motion',this%p(n)%motion) call h5%WriteAttributes('X_c',this%p(n)%xc) call h5%WriteAttributes('V_c',this%p(n)%vc) call h5%WriteAttributes('A_c',this%p(n)%Ac) call h5%WriteAttributes('Freq',this%p(n)%fr) call h5%Finalize end do return end subroutine solid_set_WriteH5HUT