Alternate version of json_file_get_real_vec where vec is real32.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(json_file), | intent(inout) | :: | me | |||
| character(kind=CK, len=*), | intent(in) | :: | path |
the path to the variable |
||
| real(kind=real32), | intent(out), | dimension(:), allocatable | :: | vec |
the value vector |
|
| logical(kind=LK), | intent(out), | optional | :: | found |
if it was really found |
|
| real(kind=real32), | intent(in), | optional, | dimension(:) | :: | default |
subroutine json_file_get_real32_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 real(real32),dimension(:),allocatable,intent(out) :: vec !! the value vector logical(LK),intent(out),optional :: found !! if it was really found real(real32),dimension(:),intent(in),optional :: default real(RK),dimension(:),allocatable :: tmp real(RK),dimension(:),allocatable :: tmp_default if (present(default)) then tmp_default = real(default,RK) call me%get(path, tmp, found, tmp_default) else call me%get(path, tmp, found) end if if (allocated(tmp)) vec = real(tmp,real32) end subroutine json_file_get_real32_vec