construct_type_wrf_ko Module Function

module function construct_type_wrf_ko(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_ko(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_ko :: property)

        select type (this => property)
        type is (type_wrf_ko)
            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_ko