Nodes of different colours represent the following:
Solid arrows point from a parent (sub)module to the submodule which is descended from it. Dashed arrows point from a module being used to the module or program unit using it. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=MaxNameLength), | intent(in) | :: | CompTypeName | |||
character(len=MaxNameLength), | intent(in) | :: | CompName | |||
logical, | intent(out) | :: | RecircIsUsed |
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 GetDualDuctOutdoorAirRecircUse(CompTypeName, CompName, RecircIsUsed )
! SUBROUTINE INFORMATION:
! AUTHOR B. Griffith
! DATE WRITTEN Aug 2011
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! get routine to learn if a dual duct outdoor air unit is using its recirc deck
! METHODOLOGY EMPLOYED:
! <description>
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY : FindItemInList, GetNumObjectsFound, GetObjectItem
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=MaxNameLength), INTENT(IN) :: CompTypeName
CHARACTER(len=MaxNameLength), INTENT(IN) :: CompName
LOGICAL , INTENT(OUT) :: RecircIsUsed
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
! INTEGER :: DamperNum
LOGICAL, SAVE :: FirstTimeOnly = .TRUE.
LOGICAL, SAVE, ALLOCATABLE ,DIMENSION (:) :: RecircIsUsedARR
CHARACTER(len=MaxNameLength),SAVE, ALLOCATABLE ,DIMENSION (:) :: DamperNamesARR
INTEGER :: DamperIndex ! Loop index to Damper that you are currently loading input into
CHARACTER (len=MaxNameLength) :: CurrentModuleObject ! for ease in getting objects
REAL(r64), DIMENSION(2) :: NumArray = 0.0d0
CHARACTER(len=MaxNameLength), DIMENSION(7) :: AlphArray = ' '
CHARACTER(len=MaxNameLength), DIMENSION(7) :: cAlphaFields = ' ' ! Alpha field names
CHARACTER(len=MaxNameLength), DIMENSION(2) :: cNumericFields = ' ' ! Numeric field names
LOGICAL, DIMENSION(7) :: lAlphaBlanks = .TRUE. ! Logical array, alpha field input BLANK = .true.
LOGICAL, DIMENSION(2) :: lNumericBlanks = .TRUE. ! Logical array, numeric field input BLANK = .true.
INTEGER :: NumAlphas
INTEGER :: NumNums
INTEGER :: IOSTAT
RecircIsUsed = .TRUE.
! this doesn't work because it fires code that depends on things being further along
! IF (GetDualDuctInputFlag) THEN !First time subroutine has been entered
! CALL GetDualDuctInput
! GetDualDuctInputFlag=.false.
! END IF
IF (FirstTimeOnly) THEN
NumDualDuctVarVolOA = GetNumObjectsFound( cCMO_DDVarVolOA )
ALLOCATE(RecircIsUsedARR(NumDualDuctVarVolOA))
ALLOCATE(DamperNamesARR(NumDualDuctVarVolOA))
IF (NumDualDuctVarVolOA > 0) THEN
DO DamperIndex = 1, NumDualDuctVarVolOA
CurrentModuleObject=cCMO_DDVarVolOA
CALL GetObjectItem(CurrentModuleObject,DamperIndex,AlphArray,NumAlphas,NumArray,NumNums,IOSTAT, &
NumBlank=lNumericBlanks,AlphaBlank=lAlphaBlanks, &
AlphaFieldNames=cAlphaFields,NumericFieldNames=cNumericFields)
DamperNamesARR(DamperIndex) = AlphArray(1)
IF (.NOT. lAlphaBlanks(5)) THEN
RecircIsUsedARR(DamperIndex) = .TRUE.
ELSE
RecircIsUsedARR(DamperIndex) = .FALSE.
ENDIF
ENDDO
ENDIF
FirstTimeOnly = .FALSE.
ENDIF
DamperIndex = FindItemInList(CompName, DamperNamesARR, NumDualDuctVarVolOA)
IF (DamperIndex > 0) THEN
RecircIsUsed = RecircIsUsedARR(DamperIndex)
ENDIF
RETURN
END SUBROUTINE GetDualDuctOutdoorAirRecircUse