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.
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 GetReturnAirPathInput
! SUBROUTINE INFORMATION:
! AUTHOR: Russ Taylor
! DATE WRITTEN: Nov 1997
! PURPOSE OF THIS SUBROUTINE: This subroutine
! METHODOLOGY EMPLOYED:
! REFERENCES:
! USE STATEMENTS:
USE InputProcessor, ONLY: GetNumObjectsFound,GetObjectItem,VerifyName, SameString
USE DataIPShortCuts
USE NodeInputManager, ONLY: GetOnlySingleNode
USE DataLoopNode
IMPLICIT NONE
INTEGER :: PathNum
INTEGER :: CompNum
INTEGER :: NumAlphas
INTEGER :: NumNums
INTEGER :: IOSTAT
INTEGER :: Counter
LOGICAL :: ErrorsFound=.false.
LOGICAL :: IsNotOK ! Flag to verify name
LOGICAL :: IsBlank ! Flag for blank name
IF (ALLOCATED(ReturnAirPath)) THEN
RETURN
ENDIF
cCurrentModuleObject = 'AirLoopHVAC:ReturnPath'
NumReturnAirPaths = GetNumObjectsFound(cCurrentModuleObject)
IF (NumReturnAirPaths > 0) THEN
ALLOCATE(ReturnAirPath(NumReturnAirPaths))
DO PathNum = 1, NumReturnAirPaths
CALL GetObjectItem(cCurrentModuleObject,PathNum,cAlphaArgs,NumAlphas, &
rNumericArgs,NumNums,IOSTAT)
IsNotOK=.false.
IsBlank=.false.
CALL VerifyName(cAlphaArgs(1),ReturnAirPath%Name,PathNum-1,IsNotOK,IsBlank,&
TRIM(cCurrentModuleObject)//' Name')
IF (IsNotOK) THEN
ErrorsFound=.true.
IF (IsBlank) cAlphaArgs(1)='xxxxx'
ENDIF
ReturnAirPath(PathNum)%Name = cAlphaArgs(1)
ReturnAirPath(PathNum)%NumOfComponents = NINT((NumAlphas - 2.0d0) / 2.0d0)
ReturnAirPath(PathNum)%OutletNodeNum = &
GetOnlySingleNode(cAlphaArgs(2),ErrorsFound,TRIM(cCurrentModuleObject),cAlphaArgs(1), &
NodeType_Air,NodeConnectionType_Outlet,1,ObjectIsParent)
ALLOCATE(ReturnAirPath(PathNum)%ComponentType(ReturnAirPath(PathNum)%NumOfComponents))
ReturnAirPath(PathNum)%ComponentType=' '
ALLOCATE(ReturnAirPath(PathNum)%ComponentType_Num(ReturnAirPath(PathNum)%NumOfComponents))
ReturnAirPath(PathNum)%ComponentType_Num=0
ALLOCATE(ReturnAirPath(PathNum)%ComponentName(ReturnAirPath(PathNum)%NumOfComponents))
ReturnAirPath(PathNum)%ComponentName=' '
ALLOCATE(ReturnAirPath(PathNum)%ComponentIndex(ReturnAirPath(PathNum)%NumOfComponents))
ReturnAirPath(PathNum)%ComponentIndex=0
Counter=3
DO CompNum = 1, ReturnAirPath(PathNum)%NumOfComponents
IF ( ( SameString(cAlphaArgs(Counter) , 'AirLoopHVAC:ZoneMixer')) .OR. &
( SameString(cAlphaArgs(Counter) , 'AirLoopHVAC:ReturnPlenum')) ) THEN
ReturnAirPath(PathNum)%ComponentType(CompNum) = cAlphaArgs(Counter)
ReturnAirPath(PathNum)%ComponentName(CompNum) = cAlphaArgs(Counter+1)
CALL ValidateComponent(ReturnAirPath(PathNum)%ComponentType(CompNum), &
ReturnAirPath(PathNum)%ComponentName(CompNum), &
IsNotOK,'AirLoopHVAC:ReturnPath')
IF (IsNotOK) THEN
CALL ShowContinueError('In AirLoopHVAC:ReturnPath ='//TRIM(ReturnAirPath(PathNum)%Name))
ErrorsFound=.true.
ENDIF
IF ( SameString(cAlphaArgs(Counter) , 'AirLoopHVAC:ZoneMixer')) &
ReturnAirPath(PathNum)%ComponentType_Num(CompNum)=ZoneMixer_Type
IF (SameString(cAlphaArgs(Counter) , 'AirLoopHVAC:ReturnPlenum')) &
ReturnAirPath(PathNum)%ComponentType_Num(CompNum)=ZoneReturnPlenum_Type
ELSE
CALL ShowSevereError('Unhandled component type in AirLoopHVAC:ReturnPath of '//TRIM(cAlphaArgs(Counter)))
CALL ShowContinueError('Occurs in AirLoopHVAC:ReturnPath = '//TRIM(ReturnAirPath(PathNum)%Name))
CALL ShowContinueError('Must be "AirLoopHVAC:ZoneMixer" or "AirLoopHVAC:ReturnPlenum"')
ErrorsFound = .TRUE.
ENDIF
Counter=Counter+2
END DO
END DO
ENDIF
IF (ErrorsFound) THEN
CALL ShowFatalError('Errors found getting AirLoopHVAC:ReturnPath. Preceding condition(s) causes termination.')
ENDIF
RETURN
END SUBROUTINE GetReturnAirPathInput