write_geo_rect_data3_rank1_R4P Function

private function write_geo_rect_data3_rank1_R4P(self, x, y, z) result(error)

Arguments

TypeIntentOptionalAttributesName
class(xml_writer_abstract), intent(inout) :: self
real(kind=R4P), intent(in) :: x(1:)
real(kind=R4P), intent(in) :: y(1:)
real(kind=R4P), intent(in) :: z(1:)

Return Value integer(kind=I4P)


Contents


Source Code

   function write_geo_rect_data3_rank1_R4P(self, x, y, z) result(error)
   !< Write mesh with **RectilinearGrid** topology (data 3, rank 1, R4P).
   class(xml_writer_abstract), intent(inout) :: self  !< Writer.
   real(R4P),                  intent(in)    :: x(1:) !< X coordinates.
   real(R4P),                  intent(in)    :: y(1:) !< Y coordinates.
   real(R4P),                  intent(in)    :: z(1:) !< Z coordinates.
   integer(I4P)                              :: error !< Error status.

   call self%write_start_tag(name='Coordinates')
   error = self%write_dataarray(data_name='X', x=x)
   error = self%write_dataarray(data_name='Y', x=y)
   error = self%write_dataarray(data_name='Z', x=z)
   call self%write_end_tag(name='Coordinates')
   error = self%error
   endfunction write_geo_rect_data3_rank1_R4P