Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | ZoneNum | |||
real(kind=r64), | intent(out) | :: | SumGCGainRate |
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.
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 SumAllInternalGenericContamGains(ZoneNum, SumGCGainRate)
! SUBROUTINE INFORMATION:
! AUTHOR L. Gu
! DATE WRITTEN Feb. 2012
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! worker routine for summing all the internal gain types based on the existing subrotine SumAllInternalCO2Gains
! 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) :: SumGCGainRate
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
REAL(r64) :: tmpSumGCGainRate
INTEGER :: DeviceNum
tmpSumGCGainRate = 0.d0
IF (ZoneIntGain(ZoneNum)%NumberOfDevices == 0) THEN
SumGCGainRate = 0.d0
RETURN
ENDIF
DO DeviceNum = 1, ZoneIntGain(ZoneNum)%NumberOfDevices
tmpSumGCGainRate = tmpSumGCGainRate + ZoneIntGain(ZoneNum)%Device(DeviceNum)%GenericContamGainRate
ENDDO
SumGCGainRate = tmpSumGCGainRate
RETURN
END SUBROUTINE SumAllInternalGenericContamGains