dm_nml Module

Fortran 95 Namelist import/export of DMPACK derived types.


Uses

  • module~~dm_nml~~UsesGraph module~dm_nml dm_nml module~dm_error dm_error module~dm_nml->module~dm_error module~dm_kind dm_kind module~dm_nml->module~dm_kind module~dm_error->module~dm_kind module~dm_ascii dm_ascii module~dm_error->module~dm_ascii iso_fortran_env iso_fortran_env module~dm_kind->iso_fortran_env

Used by

  • module~~dm_nml~~UsedByGraph module~dm_nml dm_nml module~dm_z dm_z module~dm_z->module~dm_nml module~dmpack dmpack module~dmpack->module~dm_nml module~dmpack->module~dm_z module~dm_rpc dm_rpc module~dmpack->module~dm_rpc module~dm_rpc->module~dm_z

Variables

Type Visibility Attributes Name Initial
integer, public, parameter :: NML_BEAT_LEN = 376

Max. size of beat_type namelist in bytes.

integer, public, parameter :: NML_LOG_LEN = 960

Max. size of log_type namelist in bytes.

integer, public, parameter :: NML_NODE_LEN = 384

Max. size of node_type namelist in bytes.

integer, public, parameter :: NML_OBSERV_LEN = 46*1024

Max. size of observ_type namelist in bytes.

integer, public, parameter :: NML_SENSOR_LEN = 512

Max. size of sensor_type namelist in bytes.

integer, public, parameter :: NML_TARGET_LEN = 416

Max. size of target_type namelist in bytes.


Interfaces

public interface dm_nml_from

Converts type to static or allocatable namelist string.

  • private function nml_from_beat(beat, str) result(rc)

    Writes beat namelist to string. The passed character string must have a minimum length of NML_BEAT_LEN. Returns E_WRITE on error.

    Arguments

    Type IntentOptional Attributes Name
    type(beat_type), intent(inout) :: beat

    Beat type.

    character(len=*), intent(inout) :: str

    Output string.

    Return Value integer

  • private function nml_from_log(log, str) result(rc)

    Writes log namelist to string. The passed character string must have a minimum length of NML_LOG_LEN. Returns E_WRITE on error.

    Arguments

    Type IntentOptional Attributes Name
    type(log_type), intent(inout) :: log

    Log type.

    character(len=*), intent(inout) :: str

    Output string.

    Return Value integer

  • private function nml_from_node(node, str) result(rc)

    Writes node namelist to string. The passed character string must have a minimum length of NML_NODE_LEN. Returns E_WRITE on error.

    Arguments

    Type IntentOptional Attributes Name
    type(node_type), intent(inout) :: node

    Node type.

    character(len=*), intent(inout) :: str

    Output string.

    Return Value integer

  • private function nml_from_observ(observ, str) result(rc)

    Writes observation namelist to string. The passed character string must have a minimum length of NML_OBSERV_LEN. Returns E_WRITE on error.

    Arguments

    Type IntentOptional Attributes Name
    type(observ_type), intent(inout) :: observ

    Observation type.

    character(len=*), intent(inout) :: str

    Output string.

    Return Value integer

  • private function nml_from_sensor(sensor, str) result(rc)

    Writes sensor namelist to string. The passed character string must have a minimum length of NML_SENSOR_LEN. Returns E_WRITE on error.

    Arguments

    Type IntentOptional Attributes Name
    type(sensor_type), intent(inout) :: sensor

    Sensor type.

    character(len=*), intent(inout) :: str

    Output string.

    Return Value integer

  • private function nml_from_target(target, str) result(rc)

    Writes target namelist to string. The passed character string must have a minimum length of NML_TARGET_LEN. Returns E_WRITE on error.

    Arguments

    Type IntentOptional Attributes Name
    type(target_type), intent(inout) :: target

    Target type.

    character(len=*), intent(inout) :: str

    Output string.

    Return Value integer

  • private function nml_from_beat_alloc(beat, str, n) result(rc)

    Writes beat namelist to allocatable string of given length. Returns E_ALLOC if allocation of str failed, or E_WRITE if the serialisation failed.

    Arguments

    Type IntentOptional Attributes Name
    type(beat_type), intent(inout) :: beat

    Beat type.

    character(len=:), intent(out), allocatable :: str

    Allocatable output string.

    integer, intent(in) :: n

    String length.

    Return Value integer

  • private function nml_from_log_alloc(log, str, n) result(rc)

    Writes log namelist to allocatable string of given length. Returns E_ALLOC if allocation of str failed, or E_WRITE if the serialisation failed.

    Arguments

    Type IntentOptional Attributes Name
    type(log_type), intent(inout) :: log

    Log type.

    character(len=:), intent(out), allocatable :: str

    Allocatable output string.

    integer, intent(in) :: n

    String length.

    Return Value integer

  • private function nml_from_node_alloc(node, str, n) result(rc)

    Writes node namelist to allocatable string of given length. Returns E_ALLOC if allocation of str failed, or E_WRITE if the serialisation failed.

    Arguments

    Type IntentOptional Attributes Name
    type(node_type), intent(inout) :: node

    Node type.

    character(len=:), intent(out), allocatable :: str

    Allocatable output string.

    integer, intent(in) :: n

    String length.

    Return Value integer

  • private function nml_from_observ_alloc(observ, str, n) result(rc)

    Writes observation namelist to allocatable string of given length. Returns E_ALLOC if allocation of str failed, or E_WRITE if the serialisation failed.

    Arguments

    Type IntentOptional Attributes Name
    type(observ_type), intent(inout) :: observ

    Observation type.

    character(len=:), intent(out), allocatable :: str

    Allocatable output string.

    integer, intent(in) :: n

    String length.

    Return Value integer

  • private function nml_from_sensor_alloc(sensor, str, n) result(rc)

    Writes sensor namelist to allocatable string of given length. Returns E_ALLOC if allocation of str failed, or E_WRITE if the serialisation failed.

    Arguments

    Type IntentOptional Attributes Name
    type(sensor_type), intent(inout) :: sensor

    Sensor type.

    character(len=:), intent(out), allocatable :: str

    Allocatable output string.

    integer, intent(in) :: n

    String length.

    Return Value integer

  • private function nml_from_target_alloc(target, str, n) result(rc)

    Writes target namelist to allocatable string of given length. Returns E_ALLOC if allocation of str failed, or E_WRITE if the serialisation failed.

    Arguments

    Type IntentOptional Attributes Name
    type(target_type), intent(inout) :: target

    Target type.

    character(len=:), intent(out), allocatable :: str

    Allocatable output string.

    integer, intent(in) :: n

    String length.

    Return Value integer

public interface dm_nml_to

Converts namelist string to type.

  • private impure elemental function nml_to_beat(str, beat) result(rc)

    Reads beat from namelist string. Returns E_READ on error.

    Arguments

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

    Beat namelist data.

    type(beat_type), intent(out) :: beat

    Beat type.

    Return Value integer

  • private impure elemental function nml_to_log(str, log) result(rc)

    Reads log from namelist string. Returns E_READ on error.

    Arguments

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

    Log namelist data.

    type(log_type), intent(out) :: log

    Log type.

    Return Value integer

  • private impure elemental function nml_to_node(str, node) result(rc)

    Reads node from namelist string. Returns E_READ on error.

    Arguments

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

    Node namelist data.

    type(node_type), intent(out) :: node

    Node type.

    Return Value integer

  • private impure elemental function nml_to_observ(str, observ) result(rc)

    Reads observation from namelist string. Returns E_READ on error.

    Arguments

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

    Observation namelist data.

    type(observ_type), intent(out) :: observ

    Observation type.

    Return Value integer

  • private impure elemental function nml_to_sensor(str, sensor) result(rc)

    Reads sensor from namelist string. Returns E_READ on error.

    Arguments

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

    Sensor namelist data.

    type(sensor_type), intent(out) :: sensor

    Sensor type.

    Return Value integer

  • private impure elemental function nml_to_target(str, target) result(rc)

    Reads target from namelist string. Returns E_READ on error.

    Arguments

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

    Node namelist data.

    type(target_type), intent(out) :: target

    Target type.

    Return Value integer

public interface dm_nml_read

Reads namelist from file or standard input.

  • private function nml_read_log(log, unit) result(rc)

    Reads log from file or standard input. Returns E_READ on error.

    Arguments

    Type IntentOptional Attributes Name
    type(log_type), intent(inout) :: log

    Log type.

    integer, intent(in), optional :: unit

    File unit.

    Return Value integer

  • private function nml_read_observ(observ, unit) result(rc)

    Reads observation from file or standard input. Returns E_READ on error.

    Arguments

    Type IntentOptional Attributes Name
    type(observ_type), intent(inout) :: observ

    Observation type.

    integer, intent(in), optional :: unit

    File unit.

    Return Value integer

public interface dm_nml_write

Writes namelist to file or standard output.

  • private function nml_write_log(log, unit) result(rc)

    Writes log namelist to file or standard output. Returns E_WRITE on error.

    Arguments

    Type IntentOptional Attributes Name
    type(log_type), intent(inout) :: log

    Log type.

    integer, intent(in), optional :: unit

    File unit.

    Return Value integer

  • private function nml_write_observ(observ, unit) result(rc)

    Writes observation namelist to file or standard output. Returns E_WRITE on error.

    Arguments

    Type IntentOptional Attributes Name
    type(observ_type), intent(inout) :: observ

    Observation type.

    integer, intent(in), optional :: unit

    File unit.

    Return Value integer