Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | ZoneNum | |||
real(kind=r64), | intent(out) | :: | SumCO2GainRate |
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 SumAllInternalCO2Gains(ZoneNum, SumCO2GainRate)
! 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) :: SumCO2GainRate
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
REAL(r64) :: tmpSumCO2GainRate
INTEGER :: DeviceNum
tmpSumCO2GainRate = 0.d0
IF (ZoneIntGain(ZoneNum)%NumberOfDevices == 0) THEN
SumCO2GainRate = 0.d0
RETURN
ENDIF
DO DeviceNum = 1, ZoneIntGain(ZoneNum)%NumberOfDevices
tmpSumCO2GainRate = tmpSumCO2GainRate + ZoneIntGain(ZoneNum)%Device(DeviceNum)%CarbonDioxideGainRate
ENDDO
SumCO2GainRate = tmpSumCO2GainRate
RETURN
END SUBROUTINE SumAllInternalCO2Gains