json_file_update_real Subroutine

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

Given the path string, if the variable is present in the file, and is a scalar, then update its value. If it is not present, then create it and set its value.

Type Bound

json_file

Arguments

Type IntentOptional Attributes Name
class(json_file), intent(inout) :: me
character(kind=CK, len=*), intent(in) :: path
real(kind=RK), intent(in) :: val
logical(kind=LK), intent(out) :: found

Calls

proc~~json_file_update_real~~CallsGraph proc~json_file_update_real json_file%json_file_update_real none~update~4 json_core%update proc~json_file_update_real->none~update~4 proc~json_failed json_core%json_failed proc~json_file_update_real->proc~json_failed proc~json_update_string_name_ascii json_core%json_update_string_name_ascii none~update~4->proc~json_update_string_name_ascii proc~json_update_string_val_ascii json_core%json_update_string_val_ascii none~update~4->proc~json_update_string_val_ascii proc~json_update_string_name_ascii->none~update~4 interface~to_unicode to_unicode proc~json_update_string_name_ascii->interface~to_unicode proc~json_update_string_val_ascii->none~update~4 proc~json_update_string_val_ascii->interface~to_unicode proc~to_uni to_uni interface~to_unicode->proc~to_uni proc~to_uni_vec to_uni_vec interface~to_unicode->proc~to_uni_vec

Source Code

    subroutine json_file_update_real(me,path,val,found)

    implicit none

    class(json_file),intent(inout)      :: me
    character(kind=CK,len=*),intent(in) :: path
    real(RK),intent(in)                 :: val
    logical(LK),intent(out)             :: found

    if (.not. me%core%failed()) call me%core%update(me%p,path,val,found)

    end subroutine json_file_update_real