Get a logical(LK) vector 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), | dimension(:), allocatable | :: | vec |
the value vector |
|
logical(kind=LK), | intent(out), | optional | :: | found |
if it was really found |
|
logical(kind=LK), | intent(in), | optional, | dimension(:) | :: | default |
subroutine json_file_get_logical_vec(me, path, vec, found, default) implicit none class(json_file),intent(inout) :: me character(kind=CK,len=*),intent(in) :: path !! the path to the variable logical(LK),dimension(:),allocatable,intent(out) :: vec !! the value vector logical(LK),intent(out),optional :: found !! if it was really found logical(LK),dimension(:),intent(in),optional :: default call me%core%get(me%p, path, vec, found, default) end subroutine json_file_get_logical_vec