Real-array key: accepts 1..size(tgt) values, fills from element 1, errors if more than size(tgt) values are given.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=:), | public, | allocatable | :: | dead_reason |
Unallocated/empty = live. Non-empty = this knob is registered
(accepted, type/range-validated) but does NOT reach any
ocean-path behaviour – e.g. |
||
| real(kind=rk), | public, | allocatable | :: | default(:) | |||
| character(len=:), | public, | allocatable | :: | doc |
Human-readable description (FORD-style synthesis doc). |
||
| logical, | public | :: | found | = | .false. |
Parse-state: set true when the key is seen in the file. |
|
| character(len=:), | public, | allocatable | :: | name |
Key name (matched case-insensitively). |
||
| logical, | public | :: | required | = | .false. |
If true, the key must appear whenever its group appears. |
|
| real(kind=rk), | public, | pointer | :: | tgt(:) | => | null() | |
| character(len=:), | public, | allocatable | :: | units |
Optional units string, default ‘’. |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nml_real_array_key_t), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nml_real_array_key_t), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nml_real_array_key_t), | intent(inout) | :: | this | |||
| character(len=*), | intent(in) | :: | values(:) | |||
| character(len=:), | intent(out), | allocatable | :: | err_msg |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nml_real_array_key_t), | intent(in) | :: | this |
type, extends(nml_key_t) :: nml_real_array_key_t !! Real-array key: accepts 1..size(tgt) values, fills from !! element 1, errors if more than size(tgt) values are given. real(rk), pointer :: tgt(:) => null() real(rk), allocatable :: default(:) contains procedure :: parse_tokens => real_array_parse procedure :: value_string => real_array_value_string procedure :: default_string => real_array_default_string procedure :: is_default => real_array_is_default end type nml_real_array_key_t