Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(vector) | :: | vec |
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.
FUNCTION VecLength(vec) RESULT(veclen)
! PURPOSE OF THIS SUBROUTINE:
! This subroutine calculates the length of the input vector.
! REFERENCE:
! Graphic Gems.
IMPLICIT NONE
! SUBROUTINE ARGUMENT DEFINITIONS:
type (vector) :: vec
real(r64) :: veclen
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
! na
veclen=SQRT(VecSquaredLength(vec))
return
END FUNCTION VecLength