Subroutines and functions for reading in name files
Reads single precision value from name file
Skips comments (!) and returns default value if name is not present in name file
Type | Intent | Optional | 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 |
Value found in name file (or default value)
Reads double precision value from name file
Skips comments (!) and returns default value if name is not present in name file
Type | Intent | Optional | 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 |
Value found in name file (or default value)
Reads integer value from name file
Skips comments (!) and returns default value if name is not present in name file
Type | Intent | Optional | 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 |
Value found in name file (or default value)
Reads string from name file
Skips comments (!) and returns default string if name is not present in name file
Type | Intent | Optional | 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 |
String found in name file (or default string)
Reads boolean value from name file
Skips comments (!) and returns default value if name is not present in name file
Type | Intent | Optional | 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 |
Reads string from name file
Type | Intent | Optional | 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 |
String found in name file (or default string)
Reads double precision value from name file
Type | Intent | Optional | 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 |
Value found in name file (or default value)
Reads integer value from name file
Type | Intent | Optional | 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 |
Value found in name file (or default value)
Reads boolean value from name file
Type | Intent | Optional | 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 |
Reads single precision value from name file
Type | Intent | Optional | 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 |
Value found in name file (or default value)