Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | ZoneNum | |||
integer, | intent(in), | DIMENSION(:) | :: | GainTypeARR | ||
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.
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 SumInternalConvectionGainsByTypes(ZoneNum, GainTypeARR, SumConvGainRate)
! SUBROUTINE INFORMATION:
! AUTHOR B. Griffith
! DATE WRITTEN Nov. 2011
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! worker routine for summing a subset of 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
INTEGER, DIMENSION(:), INTENT(IN) :: GainTypeARR ! variable length 1-d array of integer valued gain types
REAL(r64), INTENT(OUT) :: SumConvGainRate
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: NumberOfTypes
REAL(r64) :: tmpSumConvGainRate
INTEGER :: DeviceNum
INTEGER :: TypeNum
NumberOfTypes = Size(GainTypeARR)
tmpSumConvGainRate = 0.d0
IF (ZoneIntGain(ZoneNum)%NumberOfDevices == 0) THEN
SumConvGainRate = 0.d0
RETURN
ENDIF
DO DeviceNum = 1, ZoneIntGain(ZoneNum)%NumberOfDevices
DO TypeNum = 1, NumberOfTypes
IF (ZoneIntGain(ZoneNum)%Device(DeviceNum)%CompTypeOfNum == GainTypeARR(TypeNum)) THEN
tmpSumConvGainRate = tmpSumConvGainRate + ZoneIntGain(ZoneNum)%Device(DeviceNum)%ConvectGainRate
ENDIF
ENDDO
ENDDO
SumConvGainRate = tmpSumConvGainRate
RETURN
END SUBROUTINE SumInternalConvectionGainsByTypes