groundwater_initialise Subroutine

public subroutine groundwater_initialise(mb, subbasin_input_file_id)

Uses

  • proc~~groundwater_initialise~~UsesGraph proc~groundwater_initialise groundwater_initialise module~input input proc~groundwater_initialise->module~input module~output output proc~groundwater_initialise->module~output module~utilities utilities module~input->module~utilities module~output->module~utilities

Arguments

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

Calls

proc~~groundwater_initialise~~CallsGraph proc~groundwater_initialise groundwater_initialise proc~output_register_hydrotope_var output_register_hydrotope_var proc~groundwater_initialise->proc~output_register_hydrotope_var proc~get_config_fid get_config_fid proc~groundwater_initialise->proc~get_config_fid proc~groundwater_allocate groundwater_allocate proc~groundwater_initialise->proc~groundwater_allocate proc~output_register_subbasin_var output_register_subbasin_var proc~groundwater_initialise->proc~output_register_subbasin_var proc~groundwater_read_input groundwater_read_input proc~groundwater_initialise->proc~groundwater_read_input proc~output_register_var output_register_var proc~output_register_hydrotope_var->proc~output_register_var proc~open_file open_file proc~get_config_fid->proc~open_file proc~output_register_subbasin_var->proc~output_register_var proc~read_real_column read_real_column proc~groundwater_read_input->proc~read_real_column proc~log_error log_error proc~output_register_var->proc~log_error proc~string_index string_index proc~output_register_var->proc~string_index proc~open_file->proc~log_error 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~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~colourise->proc~string_index

Called by

proc~~groundwater_initialise~~CalledByGraph proc~groundwater_initialise groundwater_initialise proc~initialise initialise proc~initialise->proc~groundwater_initialise program~swim swim program~swim->proc~initialise

Contents


Source Code

  subroutine groundwater_initialise(mb, subbasin_input_file_id)
    use input, only: get_config_fid
    use output, only: output_register_hydrotope_var, output_register_subbasin_var
    integer, intent(in) :: mb, subbasin_input_file_id

    read(get_config_fid(), GROUNDWATER_PARAMETERS)
    groundwater_recharge_output_id = output_register_hydrotope_var("groundwater_recharge", .false.)
    baseflow_output_id = output_register_subbasin_var("baseflow", .false.)

    call groundwater_allocate(mb)
    call groundwater_read_input(subbasin_input_file_id)
  end subroutine groundwater_initialise