Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | BranchListName | |||
character(len=*), | intent(inout) | :: | FoundPlantLoopName | |||
integer, | intent(inout) | :: | FoundPlantLoopNum | |||
character(len=*), | intent(inout) | :: | FoundSupplyDemand | |||
real(kind=r64), | intent(inout) | :: | FoundVolFlowRate | |||
logical, | intent(inout) | :: | MatchedPlantLoop |
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 FindPlantLoopBranchConnection(BranchListName,FoundPlantLoopName,FoundPlantLoopNum,FoundSupplyDemand, &
FoundVolFlowRate,MatchedPlantLoop)
! SUBROUTINE INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN October 2007
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! An auxiliary routine locate a plant loop and type from a BranchListName
! METHODOLOGY EMPLOYED:
! Calls GetObject for PLANT 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) :: FoundPlantLoopName
INTEGER, INTENT(INOUT) :: FoundPlantLoopNum
CHARACTER(len=*), INTENT(INOUT) :: FoundSupplyDemand
REAL(r64), INTENT(INOUT) :: FoundVolFlowRate
LOGICAL, INTENT(INOUT) :: MatchedPlantLoop
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER Num
INTEGER NumPlantLoops
INTEGER NumParams
CHARACTER(len=MaxNameLength), ALLOCATABLE, DIMENSION(:) :: Alphas
INTEGER NumAlphas
REAL(r64), ALLOCATABLE, DIMENSION(:) :: Numbers
INTEGER NumNumbers
INTEGER IOSTAT
! Get Inputs
CurrentModuleObject = 'PlantLoop'
NumPlantLoops=GetNumObjectsFound(CurrentModuleObject)
CALL GetObjectDefMaxArgs(CurrentModuleObject,NumParams,NumAlphas,NumNumbers)
ALLOCATE(Alphas(NumAlphas))
ALLOCATE(Numbers(NumNumbers))
DO Num=1,NumPlantLoops
CALL GetObjectItem(CurrentModuleObject,Num,Alphas,NumAlphas,Numbers,NumNumbers,IOSTAT)
! Only looking for BranchList here.
IF (Alphas(8) == BranchListName) THEN
FoundPlantLoopName=Alphas(1)
FoundSupplyDemand='Supply'
FoundVolFlowRate=Numbers(3)
FoundPlantLoopNum=Num
MatchedPlantLoop=.true.
EXIT
ELSEIF (Alphas(12) == BranchListName) THEN
FoundPlantLoopName=Alphas(1)
FoundSupplyDemand='Demand'
FoundVolFlowRate=Numbers(3)
FoundPlantLoopNum=Num
MatchedPlantLoop=.true.
EXIT
ENDIF
ENDDO
DEALLOCATE(Alphas)
DEALLOCATE(Numbers)
RETURN
END SUBROUTINE FindPlantLoopBranchConnection