Neko  0.8.99
A portable framework for high-order spectral element flow simulations
json_utils::json_get_or_default Interface Reference

Retrieves a parameter by name or assigns a provided default value. In the latter case also adds the missing paramter to the json. More...

Private Member Functions

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_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 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...
 

Detailed Description

Definition at line 53 of file json_utils.f90.

Member Function/Subroutine Documentation

◆ json_get_or_default_double()

subroutine json_utils::json_get_or_default::json_get_or_default_double ( type(json_file), intent(inout)  json,
character(len=*), intent(in)  name,
real(kind=dp), intent(out)  value,
real(kind=dp), intent(in)  default 
)
private
Parameters
[in,out]jsonThe json to retrieve the parameter from.
[in]nameThe full path to the parameter.
[out]valueThe variable to be populated with the retrieved parameter.

Definition at line 277 of file json_utils.f90.

◆ json_get_or_default_integer()

subroutine json_utils::json_get_or_default::json_get_or_default_integer ( type(json_file), intent(inout)  json,
character(len=*), intent(in)  name,
integer, intent(out)  value,
integer, intent(in)  default 
)
private
Parameters
[in,out]jsonThe json to retrieve the parameter from.
[in]nameThe full path to the parameter.
[out]valueThe variable to be populated with the retrieved parameter.

Definition at line 297 of file json_utils.f90.

◆ json_get_or_default_logical()

subroutine json_utils::json_get_or_default::json_get_or_default_logical ( type(json_file), intent(inout)  json,
character(len=*), intent(in)  name,
logical, intent(out)  value,
logical, intent(in)  default 
)
private
Parameters
[in,out]jsonThe json to retrieve the parameter from.
[in]nameThe full path to the parameter.
[out]valueThe variable to be populated with the retrieved parameter.

Definition at line 317 of file json_utils.f90.

◆ json_get_or_default_real()

subroutine json_utils::json_get_or_default::json_get_or_default_real ( type(json_file), intent(inout)  json,
character(len=*), intent(in)  name,
real(kind=sp), intent(out)  value,
real(kind=sp), intent(in)  default 
)
private
Parameters
[in,out]jsonThe json to retrieve the parameter from.
[in]nameThe full path to the parameter.
[out]valueThe variable to be populated with the retrieved parameter.

Definition at line 257 of file json_utils.f90.

◆ json_get_or_default_string()

subroutine json_utils::json_get_or_default::json_get_or_default_string ( type(json_file), intent(inout)  json,
character(len=*), intent(in)  name,
character(len=:), intent(out), allocatable  value,
character(len=*), intent(in)  default 
)
private
Parameters
[in,out]jsonThe json to retrieve the parameter from.
[in]nameThe full path to the parameter.
[out]valueThe variable to be populated with the retrieved parameter.

Definition at line 337 of file json_utils.f90.


The documentation for this interface was generated from the following file: