get_toml_real Subroutine

public subroutine get_toml_real(table, key, value, context)

Arguments

Type IntentOptional Attributes Name
type(toml_table), intent(inout) :: table
type(toml_key), intent(in) :: key
real(kind=dp), intent(out) :: value
character(len=*), intent(in) :: context

Calls

proc~~get_toml_real~~CallsGraph proc~get_toml_real get_toml_real get_value get_value proc~get_toml_real->get_value proc~require_toml_success require_toml_success proc~get_toml_real->proc~require_toml_success proc~stop_config_error stop_config_error proc~get_toml_real->proc~stop_config_error proc~require_toml_success->proc~stop_config_error

Source Code

  subroutine get_toml_real(table, key, value, context)
    type(toml_table), intent(inout) :: table
    type(toml_key), intent(in) :: key
    real(dp), intent(out) :: value
    character(len=*), intent(in) :: context
    integer :: stat

    call get_value(table, key, value, stat=stat)
    call require_toml_success(stat, context)
    if (.not. ieee_is_finite(value)) call stop_config_error(trim(context)//' must be finite.')
  end subroutine get_toml_real