get_int Subroutine

private subroutine get_int(cfg, var_name, res)

Get a integer value of a given name

Arguments

Type IntentOptional Attributes Name
type(CFG_t), intent(inout) :: cfg
character(len=*), intent(in) :: var_name
integer, intent(inout) :: res

Calls

proc~~get_int~~CallsGraph proc~get_int get_int proc~prepare_get_var prepare_get_var proc~get_int->proc~prepare_get_var proc~get_var_index get_var_index proc~prepare_get_var->proc~get_var_index proc~handle_error handle_error proc~prepare_get_var->proc~handle_error proc~binary_search_variable binary_search_variable proc~get_var_index->proc~binary_search_variable

Called by

proc~~get_int~~CalledByGraph proc~get_int get_int interface~cfg_get CFG_get interface~cfg_get->proc~get_int proc~add_get_int add_get_int proc~add_get_int->proc~get_int interface~cfg_add_get CFG_add_get interface~cfg_add_get->proc~add_get_int

Source Code

  subroutine get_int(cfg, var_name, res)
    type(CFG_t), intent(inout)   :: cfg
    character(len=*), intent(in) :: var_name
    integer, intent(inout)       :: res
    integer                      :: ix

    call prepare_get_var(cfg, var_name, CFG_integer_type, 1, ix)
    res = cfg%vars(ix)%int_data(1)
  end subroutine get_int