json_get_real32 Subroutine

private subroutine json_get_real32(json, me, value)

Alternate version of json_get_real where value=real32.

Arguments

Type IntentOptional AttributesName
class(json_core), intent(inout) :: json
type(json_value), pointer:: me
real(kind=real32), intent(out) :: value

Contents

Source Code


Source Code

    subroutine json_get_real32(json, me, value)

    implicit none

    class(json_core),intent(inout) :: json
    type(json_value),pointer       :: me
    real(real32),intent(out)       :: value

    real(RK) :: tmp

    call json%get(me, tmp)
    value = real(tmp,RK)

    end subroutine json_get_real32