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) | :: | WhichZone |
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 GetDesignLightingLevelForZone(WhichZone) RESULT(DesignLightingLevelSum)
! FUNCTION INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN April 2007; January 2008 - moved to InternalGains
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! This routine sums the Lighting Level for a zone.
! Will issue a severe error for illegal zone.
! Must be called after InternalHeatGains get input.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE DataHeatBalance
USE DataGlobals
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: WhichZone ! name of zone
REAL(r64) :: DesignLightingLevelSum ! Sum of design lighting level for this zone
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
INTEGER :: Loop
IF (GetInternalHeatGainsInputFlag) THEN
CALL ShowFatalError('GetDesignLightingLevelForZone: Function called prior to Getting Lights Input.')
ENDIF
DesignLightingLevelSum=0.0d0
DO Loop=1,TotLights
IF (Lights(Loop)%ZonePtr == WhichZone) THEN
DesignLightingLevelSum=DesignLightingLevelSum+Lights(Loop)%DesignLevel
ENDIF
ENDDO
RETURN
END FUNCTION GetDesignLightingLevelForZone