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 | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | ComponentType | |||
character(len=*), | intent(in) | :: | ComponentName |
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 CheckZoneEquipmentList(ComponentType,ComponentName) RESULT(IsOnList)
! FUNCTION INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN May 2007
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! Provides a way to check if a component name is listed on a zone equipment list.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: SameString
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: ComponentType ! Type of component
CHARACTER(len=*), INTENT(IN) :: ComponentName ! Name of component
LOGICAL :: IsOnList ! True if item is on a list, false if not.
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
INTEGER :: Loop
INTEGER :: ListLoop
IsOnList=.false.
EquipList: DO Loop=1,NumOfZones ! NumofZoneEquipLists
IF (ZoneEquipList(Loop)%Name == ' ') CYCLE ! dimensioned by NumOfZones. Only valid ones have names.
DO ListLoop=1,ZoneEquipList(Loop)%NumOfEquipTypes
IF (.NOT. SameString(ZoneEquipList(Loop)%EquipType(ListLoop),ComponentType)) CYCLE
IF (ComponentName == '*') THEN
IsOnList=.true.
EXIT EquipList
ENDIF
IF (.NOT. SameString(ZoneEquipList(Loop)%EquipName(ListLoop), ComponentName)) CYCLE
IsOnList=.true.
EXIT EquipList
ENDDO
ENDDO EquipList
RETURN
END FUNCTION CheckZoneEquipmentList