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.
FUNCTION VecSquaredLength(vec) RESULT(vecsqlen)
! PURPOSE OF THIS SUBROUTINE:
! This subroutine calculates the squared length of the input vector.
! REFERENCE:
! Graphic Gems.
IMPLICIT NONE
! SUBROUTINE ARGUMENT DEFINITIONS:
type(vector) :: vec
real(r64) :: vecsqlen
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
! na
vecsqlen=(vec%x*vec%x+vec%y*vec%y+vec%z*vec%z)
return
END FUNCTION VecSquaredLength