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 | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | BranchNum | |||
character(len=MaxNameLength), | intent(inout) | :: | FanType | |||
character(len=MaxNameLength), | intent(inout) | :: | FanName | |||
logical | :: | ErrFound |
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 GetBranchFanTypeName(BranchNum, FanType, FanName, ErrFound)
! FUNCTION INFORMATION:
! AUTHOR Richard Raustad, FSEC
! DATE WRITTEN April 2013
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! This function returns the branch fan flow rate so that the calling
! routine can either use this flow or use then branch flow for sizing.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE DataInterfaces, ONLY: ShowSevereError
USE General, ONLY: TrimSigDigits
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: BranchNum
CHARACTER(len=MaxNameLength), INTENT(INOUT) :: FanType
CHARACTER(len=MaxNameLength), INTENT(INOUT) :: FanName
LOGICAL :: ErrFound
! FUNCTION PARAMETER DEFINITIONS:
CHARACTER(len=1), PARAMETER :: Blank=' '
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
INTEGER CompNum
INTEGER NumBranches
IF (GetBranchInputFlag) THEN
GetBranchInputFlag=.false.
CALL GetBranchInput
ENDIF
ErrFound = .FALSE.
NumBranches=SIZE(BRANCH)
FanType=Blank
FanName=Blank
IF (NumBranches == 0) THEN
CALL ShowSevereError('GetBranchFanTypeName: Branch index not found = '//TrimSigDigits(BranchNum,0))
ErrFound = .TRUE.
ELSE
IF(BranchNum > 0 .AND. BranchNum <= NumBranches)THEN
DO CompNum = 1, Branch(BranchNum)%NumOfComponents
IF(SameString('Fan:OnOff',Branch(BranchNum)%Component(CompNum)%CType) .OR. &
SameString('Fan:ConstantVolume',Branch(BranchNum)%Component(CompNum)%CType) .OR. &
SameString('Fan:VariableVolume',Branch(BranchNum)%Component(CompNum)%CType))THEN
FanType=Branch(BranchNum)%Component(CompNum)%CType
FanName=Branch(BranchNum)%Component(CompNum)%Name
EXIT
END IF
END DO
IF(FanType == Blank)ErrFound = .TRUE.
ELSE
CALL ShowSevereError('GetBranchFanTypeName: Branch index not found = '//TrimSigDigits(BranchNum,0))
ErrFound = .TRUE.
END IF
ENDIF
RETURN
END SUBROUTINE GetBranchFanTypeName