Get a logical(LK) value from a JSON file.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(json_file), | intent(inout) | :: | me | |||
| character(kind=CK, len=*), | intent(in) | :: | path |
the path to the variable |
||
| logical(kind=LK), | intent(out) | :: | val |
value |
||
| logical(kind=LK), | intent(out), | optional | :: | found |
if it was really found |
|
| logical(kind=LK), | intent(in), | optional | :: | default |
subroutine json_file_get_logical(me,path,val,found,default) implicit none class(json_file),intent(inout) :: me character(kind=CK,len=*),intent(in) :: path !! the path to the variable logical(LK),intent(out) :: val !! value logical(LK),intent(out),optional :: found !! if it was really found logical(LK),intent(in),optional :: default logical(LK),parameter :: default_if_not_specified = .false. character(kind=CK,len=*),parameter :: routine = CK_'json_file_get_logical' #include "json_file_get_scalar_by_path.inc" end subroutine json_file_get_logical