type_dp_2d Derived Type

type, public :: type_dp_2d


Components

Type Visibility Attributes Name Initial
real(kind=real64), public, allocatable :: x(:)
real(kind=real64), public, allocatable :: y(:)

Type-Bound Procedures

procedure, public, pass(self) :: destroy => destroy_type_dp_2d

procedure, public, pass(self) :: initialize => initialize_type_dp_2d

  • private subroutine initialize_type_dp_2d(self, length, initialize_value)

    Arguments

    Type IntentOptional Attributes Name
    class(type_dp_2d), intent(inout) :: self
    integer(kind=int32), intent(in) :: length
    real(kind=real64), intent(in), optional :: initialize_value

Source Code

    type :: type_dp_2d
        real(real64), allocatable :: x(:)
        real(real64), allocatable :: y(:)
    contains
        procedure, pass(self) :: initialize => initialize_type_dp_2d
        procedure, pass(self) :: destroy => destroy_type_dp_2d
    end type type_dp_2d