Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | ZoneNum | |||
real(kind=r64), | intent(out) | :: | SumReturnAirGainRate |
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.
SUBROUTINE SumAllReturnAirConvectionGains(ZoneNum, SumReturnAirGainRate)
! SUBROUTINE INFORMATION:
! AUTHOR B. Griffith
! DATE WRITTEN Dec. 2011
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! worker routine for summing all the internal gain types
! METHODOLOGY EMPLOYED:
! <description>
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: ZoneNum ! zone index pointer for which zone to sum gains for
REAL(r64), INTENT(OUT) :: SumReturnAirGainRate
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
REAL(r64) :: tmpSumRetAirGainRate
INTEGER :: DeviceNum
tmpSumRetAirGainRate = 0.d0
IF (ZoneIntGain(ZoneNum)%NumberOfDevices == 0) THEN
SumReturnAirGainRate = 0.d0
RETURN
ENDIF
DO DeviceNum = 1, ZoneIntGain(ZoneNum)%NumberOfDevices
tmpSumRetAirGainRate = tmpSumRetAirGainRate + ZoneIntGain(ZoneNum)%Device(DeviceNum)%ReturnAirConvGainRate
ENDDO
SumReturnAirGainRate = tmpSumRetAirGainRate
RETURN
END SUBROUTINE SumAllReturnAirConvectionGains