river_read_input Subroutine

public subroutine river_read_input(subbasin_input_file_id)

Uses

  • proc~~river_read_input~~UsesGraph proc~river_read_input river_read_input module~input input proc~river_read_input->module~input module~utilities utilities module~input->module~utilities

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: subbasin_input_file_id

Calls

proc~~river_read_input~~CallsGraph proc~river_read_input river_read_input proc~read_real_column read_real_column proc~river_read_input->proc~read_real_column proc~input_type_conversion_error input_type_conversion_error proc~read_real_column->proc~input_type_conversion_error proc~move_lines move_lines proc~read_real_column->proc~move_lines proc~log_error log_error proc~read_real_column->proc~log_error proc~check_range check_range proc~read_real_column->proc~check_range proc~read_csv_item read_csv_item proc~read_real_column->proc~read_csv_item proc~header_column_index header_column_index proc~read_real_column->proc~header_column_index proc~input_error_column_not_found input_error_column_not_found proc~read_real_column->proc~input_error_column_not_found proc~input_type_conversion_error->proc~log_error proc~log_message log_message proc~log_error->proc~log_message proc~check_range->proc~log_error proc~log_warn log_warn proc~check_range->proc~log_warn proc~out_of_range_error out_of_range_error proc~check_range->proc~out_of_range_error proc~header_column_index->proc~move_lines proc~header_column_index->proc~input_error_column_not_found proc~input_error_column_not_found->proc~log_error proc~log_warn->proc~log_message proc~out_of_range_error->proc~log_error proc~to_string to_string proc~out_of_range_error->proc~to_string proc~log_write log_write proc~log_message->proc~log_write proc~log_format_message log_format_message proc~log_message->proc~log_format_message proc~log_write->proc~to_string proc~date_time_str date_time_str proc~log_format_message->proc~date_time_str proc~colourise colourise proc~log_format_message->proc~colourise proc~string_index string_index proc~colourise->proc~string_index

Called by

proc~~river_read_input~~CalledByGraph proc~river_read_input river_read_input proc~river_initialise river_initialise proc~river_initialise->proc~river_read_input proc~initialise initialise proc~initialise->proc~river_initialise program~swim swim program~swim->proc~initialise

Contents

Source Code


Source Code

  subroutine river_read_input(subbasin_input_file_id)
    use input, only : read_real_column
    integer, intent(in) :: subbasin_input_file_id

    call read_real_column(subbasin_input_file_id, "chl", chl(1, :), range=(/0., 1e4/), closed="n")
    chl(2, :) = chl(1, :)
    call read_real_column(subbasin_input_file_id, "chs", chs, range=(/0., 3./), closed="u")
    chss = chs
    call read_real_column(subbasin_input_file_id, "chw", chw(1, :), range=(/0., 1e4/), closed="n")
    chw(2, :) = chw(1, :)
    chw(2, :) = chw(2, :) * chwc0
    call read_real_column(subbasin_input_file_id, "chd", chd)
    call read_real_column(subbasin_input_file_id, "chk", chk(1, :), 0.37_dp)
    call read_real_column(subbasin_input_file_id, "chk", chk(2, :), 0.37_dp)
    call read_real_column(subbasin_input_file_id, "chn", chn, 0.075_dp)
    call read_real_column(subbasin_input_file_id, "ovn", ovn, 0.15_dp)
    call read_real_column(subbasin_input_file_id, "rt", rt, 0.0_dp)
    call read_real_column(subbasin_input_file_id, "sdtsav", sdtsav, 0.0_dp)

  end subroutine river_read_input