Get a real(RK) variable 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 |
||
real(kind=RK), | intent(out) | :: | val |
value |
||
logical(kind=LK), | intent(out), | optional | :: | found |
if it was really found |
|
real(kind=RK), | intent(in), | optional | :: | default |
subroutine json_file_get_real (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 real(RK),intent(out) :: val !! value logical(LK),intent(out),optional :: found !! if it was really found real(RK),intent(in),optional :: default call me%core%get(me%p, path, val, found, default) end subroutine json_file_get_real