Readin routines for the input file
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| logical, | public | :: | ReadInDone | = | .FALSE. | ||
| type(tString), | private, | POINTER | :: | FirstString |
Read string named "key" from setup file and store in "GETINT". If keyword "Key" is not found in ini file, the default value "Proposal" is used for "GETINT" (error if "Proposal" not given). Ini file was read in before and is stored as list of character strings starting with "FirstString".
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | Key |
Search for this keyword in ini file |
||
| character(len=*), | intent(in), | optional | :: | Proposal |
Default values as character string (as in ini file) |
String read from setup file or initialized with default value
Counts all occurances of string named "key" from inifile and store in "CNTSTR". If keyword "Key" is not found in ini file, the default value "Proposal" is used for "CNTSTR" (error if "Proposal" not given). Inifile was read in before and is stored as list of character strings starting with "FirstString".
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | Key |
Search for this keyword in ini file |
||
| integer, | intent(in), | optional | :: | Proposal |
Default values as integer |
Number of parameters named "Key" in inifile
Read integer named "key" from setup file and store in "GETINT". If keyword "Key" is not found in ini file, the default value "Proposal" is used for "GETINT" (error if "Proposal" not given). Ini file was read in before and is stored as list of character strings starting with "FirstString".
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | Key |
Search for this keyword in ini file |
||
| integer, | intent(in), | optional | :: | Proposal |
Default values as integer scalar |
|
| logical, | intent(in), | optional | :: | quiet_def_in |
flag to be quiet if DEFAULT is taken |
Integer read from setup file or initialized with default value
Read real named "key" from setup file and store in "GETINT". If keyword "Key" is not found in ini file, the default value "Proposal" is used for "GETINT" (error if "Proposal" not given). Ini file was read in before and is stored as list of character strings starting with "FirstString".
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | Key |
Search for this keyword in ini file |
||
| real(kind=wp), | intent(in), | optional | :: | Proposal |
Default values as real scalar |
|
| logical, | intent(in), | optional | :: | quiet_def_in |
flag to be quiet if DEFAULT is taken |
Real read from setup file or initialized with default value
Read logical named "key" from setup file and store in "GETINT". If keyword "Key" is not found in ini file, the default value "Proposal" is used for "GETINT" (error if "Proposal" not given). Ini file was read in before and is stored as list of character strings starting with "FirstString".
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | Key |
Search for this keyword in ini file |
||
| logical, | intent(in), | optional | :: | Proposal |
Default values as logical |
|
| logical, | intent(in), | optional | :: | quiet_def_in |
flag to be quiet if DEFAULT is taken |
Logical read from setup file or initialized with default value
Read array of "nIntegers" integer values named "Key" from ini file. If keyword "Key" is not found in setup file, the default values "Proposal" are used to create the array (error if "Proposal" not given). Setup file was read in before and is stored as list of character strings starting with "FirstString".
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | Key |
Search for this keyword in ini file |
||
| integer, | intent(in) | :: | nIntegers |
Number of values in array |
||
| integer, | intent(in), | optional | :: | Proposal(:) |
Default values as integer array |
|
| logical, | intent(in), | optional | :: | quiet_def_in |
flag to be quiet if DEFAULT is taken |
Integer array read from setup file or initialized with default values
Read array of "nReals" real values named "Key" from ini file. If keyword "Key" is not found in setup file, the default values "Proposal" are used to create the array (error if "Proposal" not given). Setup file was read in before and is stored as list of character strings starting with "FirstString".
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | Key |
Search for this keyword in ini file |
||
| integer, | intent(in) | :: | nReals |
Number of values in array |
||
| real(kind=wp), | intent(in), | optional | :: | Proposal(:) |
Default values as real array |
|
| logical, | intent(in), | optional | :: | quiet_def_in |
flag to be quiet if DEFAULT is taken |
Real array read from setup file or initialized with default values
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | str_in |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | str_in | |||
| character(len=*), | intent(in) | :: | find | |||
| character(len=*), | intent(in) | :: | rep |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | str_in | |||
| character(len=1), | intent(in) | :: | separator |
Allocate and read integer array of unknown length "nIntegers" integer values named "Key" from ini file. If keyword "Key" is not found in setup file, the default values "Proposal" are used to create the array (error if "Proposal" not given). Setup file was read in before and is stored as list of character strings starting with "FirstString".
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | Key |
Search for this keyword in ini file |
||
| integer, | ALLOCATABLE | :: | GetIntArray(:) |
Integer array read from setup file or initialized with default values |
||
| integer, | intent(out) | :: | nIntegers |
Number of values in array |
||
| integer, | intent(in), | optional | :: | Proposal(:) |
Default values as integer array |
|
| logical, | intent(in), | optional | :: | quiet_def_in |
flag to be quiet if DEFAULT is taken |
Read array of "nReals" real values named "Key" from ini file. If keyword "Key" is not found in setup file, the default values "Proposal" are used to create the array (error if "Proposal" not given). Setup file was read in before and is stored as list of character strings starting with "FirstString".
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | Key |
Search for this keyword in ini file |
||
| real(kind=wp), | ALLOCATABLE | :: | GetRealArray(:) |
Real array read from setup file or initialized with default values |
||
| integer, | intent(out) | :: | nReals |
Number of values in array |
||
| real(kind=wp), | intent(in), | optional | :: | Proposal(:) |
Default values as real array |
|
| logical, | intent(in), | optional | :: | quiet_def_in |
flag to be quiet if DEFAULT is taken |
Prints out remaining strings in list after read-in is complete
Reset global variables
Read ini file and put each line in a string object. All string objects are connected to a list of string objects starting with "firstString". MUST BE CALLED IN THE VERY BEGINNING OF THE PROGRAM!
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | IniFile |
Name of ini file to be read in |
Create and initialize new string object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(tString), | intent(inout), | POINTER | :: | Str |
New string |
Remove string "Str" from list of strings witFirstString,h first element "DirstString" and delete string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(tString), | intent(inout), | POINTER | :: | Str |
String to delete |
Find parameter string containing keyword "Key" in list of strings starting with "FirstString" and return string "Str" without keyword. If keyword is not found in list of strings, return default values "Proposal" (error if not given). Ini file was read in before and is stored as list of character strings starting with "FirstString".
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | Key |
Search for this keyword in ini file |
||
| character(len=*), | intent(out) | :: | Str |
Parameter string without keyword |
||
| character(len=8), | intent(inout) | :: | DefMsg |
Default message = keyword not found, return default parameters (if available) |
||
| character(len=*), | intent(in), | optional | :: | Proposal |
Default values as character string (as in ini file) |
Transform upper case letters in "Str1" into lower case letters, result is "Str2", but only up the the equal sign.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | Str1 |
Input string |
||
| character(len=*), | intent(out) | :: | Str2 |
Output string, lower case letters only |
Get logical, integer, real, integer array or real array and transform it to string in the proposal format
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(inout) | :: | ProposalStr | |||
| logical, | intent(in), | optional | :: | LogScalar | ||
| integer, | intent(in), | optional | :: | intScalar | ||
| real(kind=wp), | intent(in), | optional | :: | realScalar | ||
| integer, | intent(in), | optional | :: | intarr(:) | ||
| real(kind=wp), | intent(in), | optional | :: | realarr(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | str_in | |||
| character(len=*), | intent(out) | :: | bStr | |||
| character(len=1), | intent(in) | :: | separator |