Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | ZoneNum | |||
real(kind=r64), | intent(out) | :: | SumConvGainRate |
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 SumAllInternalConvectionGains(ZoneNum, SumConvGainRate)
! SUBROUTINE INFORMATION:
! AUTHOR B. Griffith
! DATE WRITTEN Nov. 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) :: SumConvGainRate
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
REAL(r64) :: tmpSumConvGainRate
INTEGER :: DeviceNum
tmpSumConvGainRate = 0.d0
IF (ZoneIntGain(ZoneNum)%NumberOfDevices == 0) THEN
SumConvGainRate = 0.d0
RETURN
ENDIF
DO DeviceNum = 1, ZoneIntGain(ZoneNum)%NumberOfDevices
tmpSumConvGainRate = tmpSumConvGainRate + ZoneIntGain(ZoneNum)%Device(DeviceNum)%ConvectGainRate
ENDDO
SumConvGainRate = tmpSumConvGainRate
RETURN
END SUBROUTINE SumAllInternalConvectionGains