Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I8P), | intent(in) | :: | u(1:) | |||
integer(kind=I8P), | intent(in) | :: | v(1:) | |||
integer(kind=I8P), | intent(in) | :: | w(1:) | |||
integer(kind=I8P), | intent(in) | :: | x(1:) | |||
integer(kind=I8P), | intent(in) | :: | y(1:) | |||
integer(kind=I8P), | intent(in) | :: | z(1:) |
function encode_ascii_dataarray6_rank1_I8P(u, v, w, x, y, z) result(code)
!< Encode (Base64) a dataarray with 6 components of rank 1 (I8P).
integer(I8P), intent(in) :: u(1:) !< U component.
integer(I8P), intent(in) :: v(1:) !< V component.
integer(I8P), intent(in) :: w(1:) !< W component.
integer(I8P), intent(in) :: x(1:) !< X component.
integer(I8P), intent(in) :: y(1:) !< Y component.
integer(I8P), intent(in) :: z(1:) !< Z component.
character(len=:), allocatable :: code !< Encoded base64 dataarray.
integer(I4P) :: n !< Counter.
integer(I4P) :: l !< Length
integer(I4P) :: sp !< String pointer
integer(I4P) :: size_n!< Dimension 1 size
size_n = size(x, dim=1)
l = DI8P*6 + 5
sp = 0
code = repeat(' ',l*size_n)
do n=1, size_n
code(sp+1:sp+l) = str(n=u(n))//' '//str(n=v(n))//' '//str(n=w(n))// &
str(n=x(n))//' '//str(n=y(n))//' '//str(n=z(n))
sp = sp + l
enddo
endfunction encode_ascii_dataarray6_rank1_I8P