construct_type_wrf_mvg Module Function

module function construct_type_wrf_mvg(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_mvg(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_mvg :: property)

        select type (this => property)
        type is (type_wrf_mvg)
            this%theta_r = input%theta_r
            this%theta_s = input%theta_s
            this%alpha1 = input%alpha1
            this%n1 = input%n1
            this%m1 = 1.0d0 - 1.0d0 / input%n1
            this%h_crit = input%h_crit
        end select

    end function construct_type_wrf_mvg