get_logic Subroutine

private subroutine get_logic(cfg, var_name, res)

Get a logical value of a given name

Arguments

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

Calls

proc~~get_logic~~CallsGraph proc~get_logic get_logic proc~prepare_get_var prepare_get_var proc~get_logic->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_logic~~CalledByGraph proc~get_logic get_logic interface~cfg_get CFG_get interface~cfg_get->proc~get_logic proc~add_get_logic add_get_logic proc~add_get_logic->proc~get_logic interface~cfg_add_get CFG_add_get interface~cfg_add_get->proc~add_get_logic

Source Code

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

    call prepare_get_var(cfg, var_name, CFG_logic_type, 1, ix)
    res = cfg%vars(ix)%logic_data(1)
  end subroutine get_logic