read Module

This module read input control files which include: 1. control.md 2. fvscheme.md 3. flow.md 4. res_control.md 5. state_read_write_control.md


Uses

  • module~~read~~UsesGraph module~read read module~vartypes vartypes module~read->module~vartypes iso_fortran_env iso_fortran_env module~vartypes->iso_fortran_env

Used by

  • module~~read~~UsedByGraph module~read read module~time time module~time->module~read module~solver solver module~solver->module~read module~solver->module~time module~update update module~solver->module~update program~main main program~main->module~solver module~update->module~time

Contents


Functions

private function get_number_of_line(till, infile) result(number)

Get number of lines till some character like "#"

Arguments

Type IntentOptional AttributesName
character(len=1), intent(in) :: till
integer, intent(in) :: infile

Return Value integer


Subroutines

public subroutine read_input_and_controls(files, control, scheme, flow)

Read all the input control files

Arguments

Type IntentOptional AttributesName
type(filetype), intent(in) :: files
type(controltype), intent(inout) :: control
type(schemetype), intent(inout) :: scheme
type(flowtype), intent(inout) :: flow

private subroutine get_next_token(token_file_unit, buf)

Extract the next token from the config file

Read more…

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: token_file_unit
character(len=STRING_BUFFER_LENGTH), intent(out) :: buf

private subroutine read_controls(files, control)

Read control.md file

Arguments

Type IntentOptional AttributesName
type(filetype), intent(in) :: files
type(controltype), intent(inout) :: control

private subroutine read_scheme(files, scheme)

Read fvscheme.md control file

Arguments

Type IntentOptional AttributesName
type(filetype), intent(in) :: files
type(schemetype), intent(inout) :: scheme

private subroutine read_flow(files, control, flow)

Read flow.md control file

Arguments

Type IntentOptional AttributesName
type(filetype), intent(in) :: files
type(controltype), intent(inout) :: control
type(flowtype), intent(inout) :: flow

private subroutine read_output_control(files, control)

Read output_contorl.md file

Arguments

Type IntentOptional AttributesName
type(filetype), intent(in) :: files
type(controltype), intent(inout) :: control

private subroutine get_rw_count(files, control)

Get read/write count

Arguments

Type IntentOptional AttributesName
type(filetype), intent(in) :: files
type(controltype), intent(inout) :: control

private subroutine get_count_within_braces(handler, count)

Get number of variables between two curly braces

Arguments

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

File handler from which list number is extracted

integer, intent(out) :: count

Extracted count

private subroutine read_Res_list(files, control)

Read Residual file: res_control.md

Arguments

Type IntentOptional AttributesName
type(filetype), intent(in) :: files
type(controltype), intent(inout) :: control