Append a JSON array of real numbers ([x1, x2, ...]).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(text_buffer), | intent(inout) | :: | me | |||
| real(kind=wp), | intent(in), | dimension(:) | :: | x |
pure subroutine add_real_array(me, x) class(text_buffer),intent(inout) :: me real(wp),dimension(:),intent(in) :: x call me%reserve(2 + 26*size(x)) ! (at most 24 characters per number, plus ", ") call me%add_str('[') call me%add_real_list(x) call me%add_str(']') end subroutine add_real_array