new_node Function

public pure function new_node(column, element) result(node)

Constructor for a new node, sets the column and element attributes. The element passed is polymorphic, but will be cast to complex in the node itself. No nodes are linked yet; the pointer to the next node is initialised to null().

Arguments

TypeIntentOptionalAttributesName
integer, intent(in) :: column

column index

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

element added to the node

Return Value type(node_t)

new node with given column and element attributes


Contents

None