add_real_array Subroutine

private pure subroutine add_real_array(me, x)

Append a JSON array of real numbers ([x1, x2, ...]).

Type Bound

text_buffer

Arguments

Type IntentOptional Attributes Name
class(text_buffer), intent(inout) :: me
real(kind=wp), intent(in), dimension(:) :: x

Calls

proc~~add_real_array~~CallsGraph proc~add_real_array text_buffer%add_real_array proc~add_real_list text_buffer%add_real_list proc~add_real_array->proc~add_real_list proc~add_str text_buffer%add_str proc~add_real_array->proc~add_str proc~reserve text_buffer%reserve proc~add_real_array->proc~reserve proc~add_real_list->proc~add_str proc~add_real_list->proc~reserve proc~add_real text_buffer%add_real proc~add_real_list->proc~add_real proc~add_str->proc~reserve proc~add_real->proc~add_str proc~add_real->proc~reserve proc~add_digits add_digits proc~add_real->proc~add_digits proc~scaled scaled proc~add_real->proc~scaled proc~add_digits->proc~add_str proc~two_prod two_prod proc~scaled->proc~two_prod proc~split split proc~two_prod->proc~split

Called by

proc~~add_real_array~~CalledByGraph proc~add_real_array text_buffer%add_real_array proc~segment_trajectory_json segment_trajectory_json proc~segment_trajectory_json->proc~add_real_array proc~export_trajectory_json_file mission_type%export_trajectory_json_file proc~export_trajectory_json_file->proc~segment_trajectory_json proc~halo_solver_main halo_solver_main proc~halo_solver_main->proc~export_trajectory_json_file

Source Code

    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