read_namefile_routines Module

Subroutines and functions for reading in name files


Uses

  • module~~read_namefile_routines~~UsesGraph module~read_namefile_routines read_namefile_routines module~uemep_constants uemep_constants module~read_namefile_routines->module~uemep_constants

Used by

  • module~~read_namefile_routines~~UsedByGraph module~read_namefile_routines read_namefile_routines module~read_config read_config module~read_config->module~read_namefile_routines module~read_meteo_nc read_meteo_nc module~read_meteo_nc->module~read_config program~uemep uEMEP program~uemep->module~read_config program~uemep->module~read_meteo_nc module~save_emission_netcdf save_emission_netcdf program~uemep->module~save_emission_netcdf module~save_emission_netcdf->module~read_meteo_nc

Interfaces

private interface read_name

  • public function read_name_real(name_str, default_val, unit_in, unit_out) result(res)

    Reads single precision value from name file

    Skips comments (!) and returns default value if name is not present in name file

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: name_str

    Name of value in name file

    real, intent(in) :: default_val

    Default value

    integer, intent(in) :: unit_in

    Name file unit

    integer, intent(in) :: unit_out

    Log file unit

    Return Value real

    Value found in name file (or default value)

  • public function read_name_double(name_str, default_val, unit_in, unit_out) result(res)

    Reads double precision value from name file

    Skips comments (!) and returns default value if name is not present in name file

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: name_str

    Name of value in name file

    real(kind=dp), intent(in) :: default_val

    Default value

    integer, intent(in) :: unit_in

    Name file unit

    integer, intent(in) :: unit_out

    Log file unit

    Return Value real(kind=dp)

    Value found in name file (or default value)

  • public function read_name_integer(name_str, default_val, unit_in, unit_out) result(res)

    Reads integer value from name file

    Skips comments (!) and returns default value if name is not present in name file

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: name_str

    Name of value in name file

    integer, intent(in) :: default_val

    Default value

    integer, intent(in) :: unit_in

    Name file unit

    integer, intent(in) :: unit_out

    Log file unit

    Return Value integer

    Value found in name file (or default value)

  • public function read_name_char(name_str, default_val, unit_in, unit_out) result(res)

    Reads string from name file

    Skips comments (!) and returns default string if name is not present in name file

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: name_str

    Name of string in name file

    character(len=*), intent(in) :: default_val

    Default string

    integer, intent(in) :: unit_in

    Name file unit

    integer, intent(in) :: unit_out

    Log file unit

    Return Value character(len=:), allocatable

    String found in name file (or default string)

  • public function read_name_logical(name_str, default_val, unit_in, unit_out) result(res)

    Reads boolean value from name file

    Skips comments (!) and returns default value if name is not present in name file

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: name_str

    Name of value in name file

    logical, intent(in) :: default_val

    Default value

    integer, intent(in) :: unit_in

    Name file unit

    integer, intent(in) :: unit_out

    Log file unit

    Return Value logical


Functions

public function read_name_char(name_str, default_val, unit_in, unit_out) result(res)

Reads string from name file

Read more…

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: name_str

Name of string in name file

character(len=*), intent(in) :: default_val

Default string

integer, intent(in) :: unit_in

Name file unit

integer, intent(in) :: unit_out

Log file unit

Return Value character(len=:), allocatable

String found in name file (or default string)

public function read_name_double(name_str, default_val, unit_in, unit_out) result(res)

Reads double precision value from name file

Read more…

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: name_str

Name of value in name file

real(kind=dp), intent(in) :: default_val

Default value

integer, intent(in) :: unit_in

Name file unit

integer, intent(in) :: unit_out

Log file unit

Return Value real(kind=dp)

Value found in name file (or default value)

public function read_name_integer(name_str, default_val, unit_in, unit_out) result(res)

Reads integer value from name file

Read more…

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: name_str

Name of value in name file

integer, intent(in) :: default_val

Default value

integer, intent(in) :: unit_in

Name file unit

integer, intent(in) :: unit_out

Log file unit

Return Value integer

Value found in name file (or default value)

public function read_name_logical(name_str, default_val, unit_in, unit_out) result(res)

Reads boolean value from name file

Read more…

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: name_str

Name of value in name file

logical, intent(in) :: default_val

Default value

integer, intent(in) :: unit_in

Name file unit

integer, intent(in) :: unit_out

Log file unit

Return Value logical

public function read_name_real(name_str, default_val, unit_in, unit_out) result(res)

Reads single precision value from name file

Read more…

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: name_str

Name of value in name file

real, intent(in) :: default_val

Default value

integer, intent(in) :: unit_in

Name file unit

integer, intent(in) :: unit_out

Log file unit

Return Value real

Value found in name file (or default value)