Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(vector), | intent(in) | :: | vec_1 | |||
real(kind=r64), | intent(in) | :: | real_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 vector_div_real(vec_1, real_2)
! PURPOSE OF THIS SUBROUTINE:
! This subroutine allows for a vector to be divided by a
! scalar (real) value.
! METHODOLOGY EMPLOYED:
! Uses the division operator (/) to allow for this
! operation. As in:
! Vector=Vector1/Real_Value
TYPE (vector) :: vector_div_real
TYPE (vector), INTENT(IN) :: vec_1
! REAL, INTENT(IN) :: real_2
REAL(r64), INTENT(IN) :: real_2
vector_div_real%x = vec_1%x / real_2
vector_div_real%y = vec_1%y / real_2
vector_div_real%z = vec_1%z / real_2
RETURN
END FUNCTION vector_div_real