subbasin_read_input Subroutine

public subroutine subbasin_read_input()

Uses

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

Arguments

None

Calls

proc~~subbasin_read_input~~CallsGraph proc~subbasin_read_input subbasin_read_input proc~read_string_column read_string_column proc~subbasin_read_input->proc~read_string_column proc~read_integer_column read_integer_column proc~subbasin_read_input->proc~read_integer_column proc~read_real_column read_real_column proc~subbasin_read_input->proc~read_real_column proc~move_lines move_lines proc~read_string_column->proc~move_lines proc~log_error log_error proc~read_string_column->proc~log_error proc~read_csv_item read_csv_item proc~read_string_column->proc~read_csv_item proc~header_column_index header_column_index proc~read_string_column->proc~header_column_index proc~input_error_column_not_found input_error_column_not_found proc~read_string_column->proc~input_error_column_not_found proc~input_type_conversion_error input_type_conversion_error proc~read_integer_column->proc~input_type_conversion_error proc~read_integer_column->proc~move_lines proc~check_int_range check_int_range proc~read_integer_column->proc~check_int_range proc~read_integer_column->proc~log_error proc~read_integer_column->proc~read_csv_item proc~read_integer_column->proc~header_column_index proc~read_integer_column->proc~input_error_column_not_found proc~read_real_column->proc~input_type_conversion_error proc~read_real_column->proc~move_lines proc~read_real_column->proc~log_error proc~check_range check_range proc~read_real_column->proc~check_range proc~read_real_column->proc~read_csv_item proc~read_real_column->proc~header_column_index proc~read_real_column->proc~input_error_column_not_found proc~input_type_conversion_error->proc~log_error proc~check_int_range->proc~log_error proc~log_warn log_warn proc~check_int_range->proc~log_warn proc~out_of_range_error out_of_range_error proc~check_int_range->proc~out_of_range_error proc~log_message log_message proc~log_error->proc~log_message proc~check_range->proc~log_error proc~check_range->proc~log_warn 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~~subbasin_read_input~~CalledByGraph proc~subbasin_read_input subbasin_read_input proc~subbasin_initialise subbasin_initialise proc~subbasin_initialise->proc~subbasin_read_input proc~initialise initialise proc~initialise->proc~subbasin_initialise program~swim swim program~swim->proc~initialise

Contents

Source Code


Source Code

  subroutine subbasin_read_input
    use input, only : read_integer_column, read_string_column, read_real_column

    call read_integer_column(subbasin_input_file_id, "subbasin_id", subbasin_ids)
    call read_string_column(subbasin_input_file_id, "station_id", station_ids, "")
    call read_integer_column(subbasin_input_file_id, "catchment_id", subcatch_id, 1)
    call read_real_column(subbasin_input_file_id, "sl", slope_length)
    call read_real_column(subbasin_input_file_id, "stp", stp, range=(/0., 3./), closed="n")

  end subroutine subbasin_read_input