construct_type_wrf_dvgch Module Function

module function construct_type_wrf_dvgch(input) result(property)

Arguments

Type IntentOptional Attributes Name
type(type_materials_wrf), intent(in) :: input

Return Value class(Abst_WRF), allocatable


Source Code

    module function construct_type_wrf_dvgch(input) result(property)
        implicit none
        type(type_materials_wrf), intent(in) :: input
        class(Abst_WRF), allocatable :: property

        if (allocated(property)) deallocate (property)
        allocate (type_wrf_dvgch :: property)

        select type (this => property)
        type is (type_wrf_dvgch)
            this%theta_r = input%theta_r
            this%theta_s = input%theta_s
            this%alpha1 = input%alpha1
            this%n1 = input%n1
        end select

    end function construct_type_wrf_dvgch