Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | LoopNum | |||
integer, | intent(in) | :: | LoopSide |
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 FindLoopSideInCallingOrder(LoopNum, LoopSide) RESULT (CallingIndex)
! FUNCTION INFORMATION:
! AUTHOR B. Griffith
! DATE WRITTEN April 2011
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! locate loop and loop side in calling order structure
! METHODOLOGY EMPLOYED:
! returns integer "pointer" index to calling order structure
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: LoopNum
INTEGER, INTENT(IN) :: LoopSide
INTEGER :: CallingIndex
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
INTEGER :: HalfLoopNum
CallingIndex = 0
DO HalfLoopNum = 1, TotNumHalfLoops
IF ((LoopNum == PlantCallingOrderInfo(HalfLoopNum)%LoopIndex) &
.AND. (LoopSide == PlantCallingOrderInfo(HalfLoopNum)%LoopSide)) THEN
CallingIndex = HalfLoopNum
ENDIF
ENDDO
RETURN
END FUNCTION FindLoopSideInCallingOrder