ndarray_oc_factory Derived Type

type, public, extends(pf_factory_t) :: ndarray_oc_factory

Type to create and destroy N-dimenstional arrays for optimal control


Inherits

type~~ndarray_oc_factory~~InheritsGraph type~ndarray_oc_factory ndarray_oc_factory type~pf_factory_t pf_factory_t type~ndarray_oc_factory->type~pf_factory_t

Contents

Source Code


Type-Bound Procedures

procedure, public :: create_single => ndarray_oc_create_single

  • public subroutine ndarray_oc_create_single(this, x, level, shape)

    Subroutine to create a single array

    Arguments

    Type IntentOptional AttributesName
    class(ndarray_oc_factory), intent(inout) :: this
    class(pf_encap_t), intent(inout), allocatable:: x
    integer, intent(in) :: level
    integer, intent(in) :: shape(:)

procedure, public :: create_array => ndarray_oc_create_array

  • public subroutine ndarray_oc_create_array(this, x, n, level, shape)

    Subroutine to create an array of arrays

    Arguments

    Type IntentOptional AttributesName
    class(ndarray_oc_factory), intent(inout) :: this
    class(pf_encap_t), intent(inout), allocatable:: x(:)
    integer, intent(in) :: n
    integer, intent(in) :: level
    integer, intent(in) :: shape(:)

procedure, public :: destroy_single => ndarray_oc_destroy_single

  • public subroutine ndarray_oc_destroy_single(this, x, level, shape)

    Subroutine to destroy an single array

    Arguments

    Type IntentOptional AttributesName
    class(ndarray_oc_factory), intent(inout) :: this
    class(pf_encap_t), intent(inout), allocatable:: x
    integer, intent(in) :: level
    integer, intent(in) :: shape(:)

procedure, public :: destroy_array => ndarray_oc_destroy_array

  • public subroutine ndarray_oc_destroy_array(this, x, n, level, shape)

    Subroutine to destroy an array of arrays

    Arguments

    Type IntentOptional AttributesName
    class(ndarray_oc_factory), intent(inout) :: this
    class(pf_encap_t), intent(inout), allocatable:: x(:)
    integer, intent(in) :: n
    integer, intent(in) :: level
    integer, intent(in) :: shape(:)

Source Code

  type, extends(pf_factory_t) :: ndarray_oc_factory
   contains
     procedure :: create_single  => ndarray_oc_create_single
     procedure :: create_array   => ndarray_oc_create_array
     procedure :: destroy_single => ndarray_oc_destroy_single
     procedure :: destroy_array  => ndarray_oc_destroy_array
  end type ndarray_oc_factory