Neko
0.8.1
A portable framework for high-order spectral element flow simulations
|
Utilities for retrieving parameters from the case files. More...
Data Types | |
interface | json_get |
Retrieves a parameter by name or throws an error. More... | |
interface | json_get_or_default |
Retrieves a parameter by name or assigns a provided default value. In the latter case also adds the missing paramter to the json. More... | |
Functions/Subroutines | |
subroutine | json_get_real (json, name, value) |
Retrieves a real parameter by name or throws an error. More... | |
subroutine | json_get_double (json, name, value) |
Retrieves a double precision real parameter by name or throws an error. More... | |
subroutine | json_get_integer (json, name, value) |
Retrieves an integer parameter by name or throws an error. More... | |
subroutine | json_get_logical (json, name, value) |
Retrieves a logical parameter by name or throws an error. More... | |
subroutine | json_get_string (json, name, value) |
Retrieves a string parameter by name or throws an error. More... | |
subroutine | json_get_real_array (json, name, value) |
Retrieves a real array parameter by name or throws an error. More... | |
subroutine | json_get_double_array (json, name, value) |
Retrieves a real array parameter by name or throws an error. More... | |
subroutine | json_get_integer_array (json, name, value) |
Retrieves a integer array parameter by name or throws an error. More... | |
subroutine | json_get_logical_array (json, name, value) |
Retrieves a logical array parameter by name or throws an error. More... | |
subroutine | json_get_string_array (json, name, value, filler) |
Retrieves a string array parameter by name or throws an error. More... | |
subroutine | json_get_or_default_real (json, name, value, default) |
Retrieves a real parameter by name or assigns a provided default value. In the latter case also adds the missing paramter to the json. More... | |
subroutine | json_get_or_default_double (json, name, value, default) |
Retrieves a real parameter by name or assigns a provided default value. In the latter case also adds the missing paramter to the json. More... | |
subroutine | json_get_or_default_integer (json, name, value, default) |
Retrieves an integer parameter by name or assigns a provided default value. In the latter case also adds the missing paramter to the json. More... | |
subroutine | json_get_or_default_logical (json, name, value, default) |
Retrieves a logical parameter by name or assigns a provided default value. In the latter case also adds the missing paramter to the json. More... | |
subroutine | json_get_or_default_string (json, name, value, default) |
Retrieves a string parameter by name or assigns a provided default value. In the latter case also adds the missing paramter to the json. More... | |
subroutine, public | json_extract_item (core, array, i, item) |
Extract i th item from a JSON array as a separate JSON object. More... | |
Utilities for retrieving parameters from the case files.
subroutine, public json_utils::json_extract_item | ( | type(json_core), intent(inout) | core, |
type(json_value), intent(in), pointer | array, | ||
integer, intent(in) | i, | ||
type(json_file), intent(inout) | item | ||
) |
Extract i
th item from a JSON array as a separate JSON object.
[in,out] | core | JSON core object. |
[in] | array | The JSON object with the array. |
[in] | i | The index of the item to extract. |
[in,out] | item | JSON object object to be filled with the subdict. |
Definition at line 363 of file json_utils.f90.
|
private |
Retrieves a double precision real parameter by name or throws an error.
[in,out] | json | The json to retrieve the parameter from. |
[in] | name | The full path to the parameter. |
[out] | value | The variable to be populated with the retrieved parameter. |
Definition at line 82 of file json_utils.f90.
|
private |
Retrieves a real array parameter by name or throws an error.
[in,out] | json | The json to retrieve the parameter from. |
[in] | name | The full path to the parameter. |
[out] | value | The variable to be populated with the retrieved parameter. |
Definition at line 167 of file json_utils.f90.
|
private |
Retrieves an integer parameter by name or throws an error.
[in,out] | json | The json to retrieve the parameter from. |
[in] | name | The full path to the parameter. |
[out] | value | The variable to be populated with the retrieved parameter. |
Definition at line 99 of file json_utils.f90.
|
private |
Retrieves a integer array parameter by name or throws an error.
[in,out] | json | The json to retrieve the parameter from. |
[in] | name | The full path to the parameter. |
[out] | value | The variable to be populated with the retrieved parameter. |
Definition at line 184 of file json_utils.f90.
|
private |
Retrieves a logical parameter by name or throws an error.
[in,out] | json | The json to retrieve the parameter from. |
[in] | name | The full path to the parameter. |
[out] | value | The variable to be populated with the retrieved parameter. |
Definition at line 116 of file json_utils.f90.
|
private |
Retrieves a logical array parameter by name or throws an error.
[in,out] | json | The json to retrieve the parameter from. |
[in] | name | The full path to the parameter. |
[out] | value | The variable to be populated with the retrieved parameter. |
Definition at line 201 of file json_utils.f90.
|
private |
Retrieves a real parameter by name or assigns a provided default value. In the latter case also adds the missing paramter to the json.
[in,out] | json | The json to retrieve the parameter from. |
[in] | name | The full path to the parameter. |
[out] | value | The variable to be populated with the retrieved parameter. |
Definition at line 283 of file json_utils.f90.
|
private |
Retrieves an integer parameter by name or assigns a provided default value. In the latter case also adds the missing paramter to the json.
[in,out] | json | The json to retrieve the parameter from. |
[in] | name | The full path to the parameter. |
[out] | value | The variable to be populated with the retrieved parameter. |
Definition at line 303 of file json_utils.f90.
|
private |
Retrieves a logical parameter by name or assigns a provided default value. In the latter case also adds the missing paramter to the json.
[in,out] | json | The json to retrieve the parameter from. |
[in] | name | The full path to the parameter. |
[out] | value | The variable to be populated with the retrieved parameter. |
Definition at line 323 of file json_utils.f90.
|
private |
Retrieves a real parameter by name or assigns a provided default value. In the latter case also adds the missing paramter to the json.
[in,out] | json | The json to retrieve the parameter from. |
[in] | name | The full path to the parameter. |
[out] | value | The variable to be populated with the retrieved parameter. |
Definition at line 263 of file json_utils.f90.
|
private |
Retrieves a string parameter by name or assigns a provided default value. In the latter case also adds the missing paramter to the json.
[in,out] | json | The json to retrieve the parameter from. |
[in] | name | The full path to the parameter. |
[out] | value | The variable to be populated with the retrieved parameter. |
Definition at line 343 of file json_utils.f90.
|
private |
Retrieves a real parameter by name or throws an error.
[in,out] | json | The json to retrieve the parameter from. |
[in] | name | The full path to the parameter. |
[out] | value | The variable to be populated with the retrieved parameter. |
Definition at line 65 of file json_utils.f90.
|
private |
Retrieves a real array parameter by name or throws an error.
[in,out] | json | The json to retrieve the parameter from. |
[in] | name | The full path to the parameter. |
[out] | value | The variable to be populated with the retrieved parameter. |
Definition at line 150 of file json_utils.f90.
|
private |
Retrieves a string parameter by name or throws an error.
[in,out] | json | The json to retrieve the parameter from. |
[in] | name | The full path to the parameter. |
[out] | value | The variable to be populated with the retrieved parameter. |
Definition at line 133 of file json_utils.f90.
|
private |
Retrieves a string array parameter by name or throws an error.
[in,out] | json | The json to retrieve the parameter from. |
[in] | name | The full path to the parameter. |
[out] | value | The variable to be populated with the retrieved parameter. |
[in] | filler | The default string to fill empty array items with. |
Definition at line 219 of file json_utils.f90.