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) | :: | CompTypeNum | |||
character(len=*), | intent(in) | :: | CompName | |||
integer | :: | CompNum | ||||
logical, | intent(in) | :: | RunFlag | |||
logical, | intent(inout) | :: | InitLoopEquip | |||
real(kind=r64), | intent(inout) | :: | MyLoad | |||
real(kind=r64), | intent(out) | :: | MaxCap | |||
real(kind=r64), | intent(out) | :: | MinCap | |||
real(kind=r64), | intent(out) | :: | OptCap | |||
logical, | intent(in) | :: | FirstHVACIteration |
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 SimPlantValves(CompTypeNum,CompName,CompNum,RunFlag,InitLoopEquip, &
MyLoad,MaxCap,MinCap,OptCap,FirstHVACIteration)
! SUBROUTINE INFORMATION:
! AUTHOR B. Griffith, NREL
! DATE WRITTEN Jan. 2006
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Simulation manager for Plant valves
! METHODOLOGY EMPLOYED:
! <description>
! REFERENCES:
! na
! USE STATEMENTS:
USE DataGlobals, ONLY: BeginEnvrnFlag
USE DataInterfaces, ONLY: ShowFatalError, ShowContinueError, ShowSevereError
USE InputProcessor, ONLY: FindItemInList
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: CompTypeNum
CHARACTER(len=*), INTENT(IN) :: CompName
INTEGER :: CompNum
LOGICAL, INTENT(IN) :: RunFlag !unused1208
LOGICAL, INTENT(INOUT) :: InitLoopEquip
REAL(r64), INTENT(INOUT) :: MyLoad !unused1208
REAL(r64), INTENT(OUT) :: MinCap
REAL(r64), INTENT(OUT) :: MaxCap
REAL(r64), INTENT(OUT) :: OptCap
LOGICAL, INTENT(IN) :: FirstHVACIteration ! TRUE if First iteration of simulation
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
LOGICAL,SAVE :: GetInputFlag = .true. ! First time, input is "gotten"
INTEGER :: EqNum
IF (GetInputFlag) THEN
CALL GetPlantValvesInput
GetInputFlag=.false.
ENDIF
! Find the correct Equipment
IF (CompNum == 0) THEN
EqNum = FindItemInList(CompName, TemperValve%Name, NumTemperingValves)
IF (EqNum == 0) THEN
CALL ShowFatalError('SimPlantValves: Unit not found='//TRIM(CompName))
ENDIF
CompNum=EqNum
ELSE
EqNum=CompNum
IF (EqNum > NumTemperingValves .or. EqNum < 1) THEN
CALL ShowFatalError('SimPlantValves: Invalid CompNum passed='// &
TRIM(TrimSigDigits(EqNum))// &
', Number of Units='//TRIM(TrimSigDigits(NumTemperingValves))// &
', Entered Unit name='//TRIM(CompName))
ENDIF
IF (CheckEquipName(EqNum)) THEN
IF (CompName /= TemperValve(EqNum)%Name) THEN
CALL ShowFatalError('SimPlantValves: Invalid CompNum passed='// &
TRIM(TrimSigDigits(EqNum))// &
', Unit name='//TRIM(CompName)//', stored Unit Name for that index='// &
TRIM(TemperValve(EqNum)%Name))
ENDIF
CheckEquipName(EqNum)=.false.
ENDIF
ENDIF
IF (InitLoopEquip) THEN
MinCap = 0.0d0
MaxCap = 0.0d0
OptCap = 0.0d0
RETURN
ENDIF
CALL InitPlantValves(CompTypeNum,CompNum)
CALL CalcPlantValves(CompTypeNum,CompNum)
CALL UpdatePlantValves(CompTypeNum,CompNum)
CALL ReportPlantValves !(Args)
RETURN
END SUBROUTINE SimPlantValves