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 |
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.
REAL(r64) FUNCTION GetBranchFlow(BranchNum)
! FUNCTION INFORMATION:
! AUTHOR Richard Raustad, FSEC
! DATE WRITTEN April 2013
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! This function returns the branch index so that the calling
! routine can search for a fan on this branch or use 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
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
INTEGER NumBranches
IF (GetBranchInputFlag) THEN
GetBranchInputFlag=.false.
CALL GetBranchInput
ENDIF
NumBranches=SIZE(BRANCH)
IF (NumBranches == 0) THEN
CALL ShowSevereError('GetBranchFlow: Branch index not found = '//TrimSigDigits(BranchNum,0))
GetBranchFlow = 0.d0
ELSE
IF(BranchNum > 0 .AND. BranchNum <= NumBranches)THEN
GetBranchFlow = Branch(BranchNum)%MaxFlowRate
END IF
ENDIF
RETURN
END FUNCTION GetBranchFlow