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 UpdateCoolTower
! SUBROUTINE INFORMATION:
! AUTHOR Richard J. Liesen
! DATE WRITTEN October 2000
! MODIFIED Aug 2008 Daeho Kang
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine needs a description.
! METHODOLOGY EMPLOYED:
! Needs description, as appropriate.
! REFERENCES:
! na
! USE STATEMENTS:
USE DataWater
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: CoolTowerNum
REAL(r64) :: AvailWaterRate
DO CoolTowerNum = 1, NumCoolTowers
! Set the demand request for supply water from water storage tank (if needed)
IF (CoolTowerSys(CoolTowerNum)%CoolTWaterSupplyMode == WaterSupplyFromTank) THEN
WaterStorage(CoolTowerSys(CoolTowerNum)%CoolTWaterSupTankID)% &
VdotRequestDemand(CoolTowerSys(CoolTowerNum)%CoolTWaterTankDemandARRID) &
= CoolTowerSys(CoolTowerNum)%CoolTWaterConsumpRate
END IF
!check if should be starved by restricted flow from tank
IF (CoolTowerSys(CoolTowerNum)%CoolTWaterSupplyMode == WaterSupplyFromTank) THEN
AvailWaterRate = WaterStorage(CoolTowerSys(CoolTowerNum)%CoolTWaterSupTankID)%VdotAvailDemand &
(CoolTowerSys(CoolTowerNum)%CoolTWaterTankDemandARRID)
IF (AvailWaterRate < CoolTowerSys(CoolTowerNum)%CoolTWaterConsumpRate) THEN
CoolTowerSys(CoolTowerNum)%CoolTWaterStarvMakeupRate = &
CoolTowerSys(CoolTowerNum)%CoolTWaterConsumpRate - AvailWaterRate
CoolTowerSys(CoolTowerNum)%CoolTWaterConsumpRate = AvailWaterRate
END IF
END IF
END DO
RETURN
END Subroutine UpdateCoolTower