Nodes of different colours represent the following:
Solid arrows point from a submodule to the (sub)module which it is
descended from. Dashed arrows point from a module or program unit to
modules which it uses.
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.
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.
Source Code
integer function alignment(n)! returns an integer determining whether a unit vector n is aligned with the! coordinates axes.use modglobal,only:xhat,yhat,zhatimplicit nonereal,dimension(3),intent(in)::n! must be unit vectorif(is_equal(n,xhat))thenalignment=1elseif(is_equal(n,yhat))thenalignment=2elseif(is_equal(n,zhat))thenalignment=3elseif(is_equal(n,-xhat))thenalignment=-1elseif(is_equal(n,-yhat))thenalignment=-2elseif(is_equal(n,-zhat))thenalignment=-3elsealignment=0end if end function alignment