Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | BranchListName | |||
character(len=*), | intent(inout) | :: | FoundAirLoopName | |||
integer, | intent(inout) | :: | FoundAirLoopNum | |||
character(len=*), | intent(inout) | :: | FoundAir | |||
real(kind=r64), | intent(inout) | :: | FoundVolFlowRate | |||
logical, | intent(inout) | :: | MatchedAirLoop |
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 FindAirLoopBranchConnection(BranchListName,FoundAirLoopName,FoundAirLoopNum,FoundAir, &
FoundVolFlowRate,MatchedAirLoop)
! SUBROUTINE INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN February 2008
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! An auxiliary routine locate a Airenser loop and type from a BranchListName
! METHODOLOGY EMPLOYED:
! calls GetObject for PRIMARY AIR LOOP
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: BranchListName
CHARACTER(len=*), INTENT(INOUT) :: FoundAirLoopName
INTEGER, INTENT(INOUT) :: FoundAirLoopNum
CHARACTER(len=*), INTENT(INOUT) :: FoundAir
REAL(r64), INTENT(INOUT) :: FoundVolFlowRate
LOGICAL, INTENT(INOUT) :: MatchedAirLoop
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER Num
INTEGER NumAirLoops
INTEGER NumParams
CHARACTER(len=MaxNameLength), ALLOCATABLE, DIMENSION(:) :: Alphas
INTEGER NumAlphas
REAL(r64), ALLOCATABLE, DIMENSION(:) :: Numbers
INTEGER NumNumbers
INTEGER IOSTAT
! Get Inputs
CurrentModuleObject = 'AirLoopHVAC'
NumAirLoops=GetNumObjectsFound(CurrentModuleObject)
CALL GetObjectDefMaxArgs(CurrentModuleObject,NumParams,NumAlphas,NumNumbers)
ALLOCATE(Alphas(NumAlphas))
ALLOCATE(Numbers(NumNumbers))
DO Num=1,NumAirLoops
CALL GetObjectItem(CurrentModuleObject,Num,Alphas,NumAlphas,Numbers,NumNumbers,IOSTAT)
! Only looking for BranchList here.
IF (Alphas(4) == BranchListName) THEN
FoundAirLoopName=Alphas(1)
FoundAir='Air'
FoundVolFlowRate=Numbers(1)
FoundAirLoopNum=Num
MatchedAirLoop=.true.
EXIT
ENDIF
ENDDO
DEALLOCATE(Alphas)
DEALLOCATE(Numbers)
RETURN
END SUBROUTINE FindAirLoopBranchConnection