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 => type_dp_2d_destroy

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

  • private subroutine type_dp_2d_initialize(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 => type_dp_2d_initialize
        procedure, pass(self) :: destroy => type_dp_2d_destroy
    end type type_dp_2d