write_dataarray6_rank1_I2P Function

private function write_dataarray6_rank1_I2P(self, data_name, u, v, w, x, y, z, is_tuples) result(error)

Arguments

TypeIntentOptionalAttributesName
class(xml_writer_appended), intent(inout) :: self
character, intent(in) :: data_name
integer(kind=I2P), intent(in) :: u(1:)
integer(kind=I2P), intent(in) :: v(1:)
integer(kind=I2P), intent(in) :: w(1:)
integer(kind=I2P), intent(in) :: x(1:)
integer(kind=I2P), intent(in) :: y(1:)
integer(kind=I2P), intent(in) :: z(1:)
logical, intent(in), optional :: is_tuples

Return Value integer(kind=I4P)


Contents


Source Code

  function write_dataarray6_rank1_I2P(self, data_name, u, v, w, x, y, z, is_tuples) result(error)
  !< Write `<DataArray... NumberOfComponents="6"...>...</DataArray>` tag (I2P).
  class(xml_writer_appended), intent(inout)        :: self         !< Writer.
  character(*),               intent(in)           :: data_name    !< Data name.
  integer(I2P),               intent(in)           :: u(1:)        !< U component of data variable.
  integer(I2P),               intent(in)           :: v(1:)        !< V component of data variable.
  integer(I2P),               intent(in)           :: w(1:)        !< W component of data variable.
  integer(I2P),               intent(in)           :: x(1:)        !< X component of data variable.
  integer(I2P),               intent(in)           :: y(1:)        !< Y component of data variable.
  integer(I2P),               intent(in)           :: z(1:)        !< Z component of data variable.
  logical,                    intent(in), optional :: is_tuples    !< Use "NumberOfTuples".
  integer(I4P)                                     :: error        !< Error status.
  character(len=:), allocatable                    :: data_type    !< Data type.
  integer(I4P)                                     :: n_components !< Number of components.

  data_type = 'Int16'
  n_components = 6
  call self%write_dataarray_tag_appended(data_type=data_type, number_of_components=n_components, data_name=data_name, &
                                         is_tuples=is_tuples)
  call self%ioffset_update(n_byte=self%write_on_scratch_dataarray(u=u, v=v, w=w, x=x, y=y, z=z))
  error = self%error
  endfunction write_dataarray6_rank1_I2P