Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(json_file), | intent(inout) | :: | me | |||
character(kind=CK,len=*), | intent(in) | :: | path | |||
real(kind=RK), | intent(out), | dimension(:), allocatable | :: | vec | ||
logical(kind=LK), | intent(out), | optional | :: | found |
Get a real(RK) vector from a JSON file.
subroutine json_file_get_double_vec(me, path, vec, found)
implicit none
class(json_file),intent(inout) :: me
character(kind=CK,len=*),intent(in) :: path
real(RK),dimension(:),allocatable,intent(out) :: vec
logical(LK),intent(out),optional :: found
call json_get(me%p, path, vec, found)
end subroutine json_file_get_double_vec