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.
Source Code
FUNCTION DIRECTION(UD,VD)! CALCULATES THE WIND DIRECTION!Taken from NBLM1IMPLICIT NONEREAL DIRECTION,UD,VD,PIPI=180./3.14159DIRECTION=0.IF(UD.GT.0.AND.VD.GE.0)DIRECTION=270.-ATAN(ABS(VD/UD))*PIIF(UD.LE.0.AND.VD.GT.0)DIRECTION=180.-ATAN(ABS(UD/VD))*PIIF(UD.LT.0.AND.VD.LE.0)DIRECTION=90.-ATAN(ABS(VD/UD))*PIIF(UD.GE.0.AND.VD.LT.0)DIRECTION=360.-ATAN(ABS(UD/VD))*PIEND FUNCTION DIRECTION