Nodes of different colours represent the following:
Solid arrows point from a parent (sub)module to the submodule which is descended from it. Dashed arrows point from a module being used to the module or program unit using it. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | TrialZoneNodeNum |
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 FindControlledZoneIndexFromSystemNodeNumberForZone(TrialZoneNodeNum) RESULT (ControlledZoneIndex)
! FUNCTION INFORMATION:
! AUTHOR Brent Griffith
! DATE WRITTEN August 2013
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! This function returns the zone number for the indicated
! zone node num. Returns 0 if did not find zone node in any Zone
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: FindItemInList
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: TrialZoneNodeNum ! Node number to match into Controlled Zone structure
INTEGER :: ControlledZoneIndex ! Index into Controlled Zone structure
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
LOGICAL :: FoundIt
INTEGER :: ZoneNum
FoundIt = .FALSE.
IF (.not. ZoneEquipInputsFilled) THEN
CALL GetZoneEquipmentData1
ZoneEquipInputsFilled=.true.
END IF
ControlledZoneIndex = 0
DO ZoneNum = 1 , NumOfZones
IF (ZoneEquipConfig(ZoneNum)%ActualZoneNum > 0) THEN
IF ( TrialZoneNodeNum == ZoneEquipConfig(ZoneNum)%ZoneNode) THEN
! found it.
FoundIt = .TRUE.
ControlledZoneIndex = ZoneEquipConfig(ZoneNum)%ActualZoneNum
ENDIF
ENDIF
ENDDO
RETURN
END FUNCTION FindControlledZoneIndexFromSystemNodeNumberForZone