node_t Derived Type

type, public :: node_t

Base node corresponding to a given column - value pair for a given row


Contents


Components

TypeVisibilityAttributesNameInitial
integer, public :: column

column index

complex(kind=dp), private :: element

complex value for the matrix element

class(node_t), public, pointer:: next

pointer to next node


Type-Bound Procedures

procedure, public :: add_to_node_element

  • private subroutine add_to_node_element(this, element)

    Adds a given element to the node element, does type-checking of the polymorphic element given. Allowed types are complex, real, integer.

    Arguments

    TypeIntentOptionalAttributesName
    class(node_t), intent(inout) :: this

    type instance

    class(*), intent(in) :: element

    element to add to the existing element

procedure, public :: get_node_element

  • private pure function get_node_element(this) result(element)

    Returns the node element.

    Arguments

    TypeIntentOptionalAttributesName
    class(node_t), intent(in) :: this

    type instance

    Return Value complex(kind=dp)

    node element

procedure, public :: delete

  • private pure subroutine delete(this)

    Destructor, deallocates the node attributes.

    Arguments

    TypeIntentOptionalAttributesName
    class(node_t), intent(inout) :: this

    type instance