codata__constants_type Module

Codata constant type


Uses

  • module~~codata__constants_type~2~~UsesGraph module~codata__constants_type~2 codata__constants_type iso_c_binding iso_c_binding module~codata__constants_type~2->iso_c_binding stdlib_io stdlib_io module~codata__constants_type~2->stdlib_io stdlib_kinds stdlib_kinds module~codata__constants_type~2->stdlib_kinds stdlib_optval stdlib_optval module~codata__constants_type~2->stdlib_optval

Used by

  • module~~codata__constants_type~2~~UsedByGraph module~codata__constants_type~2 codata__constants_type module~codata__constants codata__constants module~codata__constants->module~codata__constants_type~2 module~codata__constants_2010 codata__constants_2010 module~codata__constants->module~codata__constants_2010 module~codata__constants_2014 codata__constants_2014 module~codata__constants->module~codata__constants_2014 module~codata__constants_2018 codata__constants_2018 module~codata__constants->module~codata__constants_2018 module~codata__constants_2022 codata__constants_2022 module~codata__constants->module~codata__constants_2022 module~codata__constants_2010->module~codata__constants_type~2 module~codata__constants_2014->module~codata__constants_type~2 module~codata__constants_2018->module~codata__constants_type~2 module~codata__constants_2022->module~codata__constants_type~2 module~codata codata module~codata->module~codata__constants

Interfaces

public interface to_real

Get the constant value or uncertainty.

  • private pure elemental function to_real_sp(self, mold, uncertainty) result(r)

    Get the constant value or uncertainty for the kind sp

    Arguments

    Type IntentOptional Attributes Name
    class(codata_constant_type), intent(in) :: self

    Codata constant

    real(kind=sp), intent(in) :: mold

    dummy argument to disambiguate at compile time the generic interface

    logical, intent(in), optional :: uncertainty

    Set to true if the uncertainty is required. Default to .false..

    Return Value real(kind=sp)

  • private pure elemental function to_real_dp(self, mold, uncertainty) result(r)

    Get the constant value or uncertainty for the kind dp

    Arguments

    Type IntentOptional Attributes Name
    class(codata_constant_type), intent(in) :: self

    Codata constant

    real(kind=dp), intent(in) :: mold

    dummy argument to disambiguate at compile time the generic interface

    logical, intent(in), optional :: uncertainty

    Set to true if the uncertainty is required. Default to .false..

    Return Value real(kind=dp)


Derived Types

type, public ::  codata_constant_type

Derived type for representing a Codata constant.

Components

Type Visibility Attributes Name Initial
character(len=64), public :: name
real(kind=dp), public :: uncertainty
character(len=32), public :: unit
real(kind=dp), public :: value

Type-Bound Procedures

procedure, public :: print
generic, public :: to_real => to_real_sp, to_real_dp
procedure, public :: to_real_dp
procedure, public :: to_real_sp