| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(vector_2d), | intent(in) | :: | vec_1 | |||
| type(vector_2d), | intent(in) | :: | vec_2 | 
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 vec2d_dot_product(vec_1, vec_2)
     ! PURPOSE OF THIS SUBROUTINE:
     ! This subroutine allows for the dot product of two vectors.
     ! METHODOLOGY EMPLOYED:
     ! Uses a special operator (.dot.) to allow for this
     ! operation.  As in:
     ! Vector=Vector1.dot.Vector2
      REAL(r64) :: vec2d_dot_product
      TYPE (vector_2d), INTENT(IN) :: vec_1, vec_2
      vec2d_dot_product = vec_1%x*vec_2%x + vec_1%y*vec_2%y
      RETURN
   END FUNCTION vec2d_dot_product