json_file_get_double Subroutine

private subroutine json_file_get_double(me, path, val, found)

Get a real(RK) variable value from a JSON file.

Arguments

Type IntentOptional AttributesName
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


Contents

Source Code


Source Code

    subroutine json_file_get_double (me, path, val, found)

    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

    call me%core%get(me%p, path=path, value=val, found=found)

    end subroutine json_file_get_double