State Derived Type

type, public :: State


Contents

Source Code


Components

TypeVisibilityAttributesNameInitial
real(kind=wp), public :: mean_molecular_weight =0.0_wp
real(kind=wp), public :: temperature =0.0_wp
real(kind=wp), public :: pressure =0.0_wp
real(kind=wp), public :: speed_of_sound =0.0_wp

Type-Bound Procedures

procedure, public :: density

  • private pure function density(s)

    Arguments

    TypeIntentOptionalAttributesName
    class(State), intent(in) :: s

    Return Value real(kind=wp)

Source Code

    type,public :: State
        real(wp) :: mean_molecular_weight = 0.0_wp
        real(wp) :: temperature = 0.0_wp
        real(wp) :: pressure = 0.0_wp
        real(wp) :: speed_of_sound = 0.0_wp
        contains
        procedure :: density
    end type State