Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(xml_writer_abstract), | intent(inout) | :: | self | |||
integer(kind=I4P), | intent(in) | :: | nx1 | |||
integer(kind=I4P), | intent(in) | :: | nx2 | |||
integer(kind=I4P), | intent(in) | :: | ny1 | |||
integer(kind=I4P), | intent(in) | :: | ny2 | |||
integer(kind=I4P), | intent(in) | :: | nz1 | |||
integer(kind=I4P), | intent(in) | :: | nz2 |
function write_piece_start_tag(self, nx1, nx2, ny1, ny2, nz1, nz2) result(error)
!< Write `<Piece ...>` start tag.
class(xml_writer_abstract), intent(inout) :: self !< Writer.
integer(I4P), intent(in) :: nx1 !< Initial node of x axis.
integer(I4P), intent(in) :: nx2 !< Final node of x axis.
integer(I4P), intent(in) :: ny1 !< Initial node of y axis.
integer(I4P), intent(in) :: ny2 !< Final node of y axis.
integer(I4P), intent(in) :: nz1 !< Initial node of z axis.
integer(I4P), intent(in) :: nz2 !< Final node of z axis.
integer(I4P) :: error !< Error status.
type(string) :: tag_attributes !< Tag attributes.
tag_attributes = 'Extent="'//trim(str(n=nx1))//' '//trim(str(n=nx2))//' '// &
trim(str(n=ny1))//' '//trim(str(n=ny2))//' '// &
trim(str(n=nz1))//' '//trim(str(n=nz2))//'"'
call self%write_start_tag(name='Piece', attributes=tag_attributes%chars())
error = self%error
endfunction write_piece_start_tag