Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
Variables
Type
Visibility
Attributes
Name
Initial
integer(kind=default_int),
private
::
best
integer(kind=default_int),
private
::
child
integer(kind=default_int),
private
::
parent
Source Code
pure subroutine sift_down(self,start)!! Move entry `start` towards the leaves until the heap property holds.class(heap_t),intent(inout)::selfinteger(default_int),intent(in)::startinteger(default_int)::parent,child,bestparent=startdochild=2*parentif(child>self%n_entries)exitbest=childif(child<self%n_entries)then if(precedes(self,child+1,best))best=child+1end if if(.not.precedes(self,best,parent))exit call swap_entries(self,parent,best)parent=bestend do end subroutine sift_down