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 | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | CompType | |||
character(len=*), | intent(in) | :: | CompName | |||
real(kind=r64), | intent(out) | :: | Value | |||
integer, | intent(inout) | :: | CompIndex |
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 CheckHXAssistedCoolingCoilSchedule(CompType,CompName,Value,CompIndex)
! SUBROUTINE INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN October 2005
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This routine provides a method for outside routines to check if
! the hx assisted cooling coil is scheduled to be on.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: FindItem
USE General, ONLY: TrimSigDigits
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: CompType !unused1208
CHARACTER(len=*), INTENT(IN) :: CompName
REAL(r64), INTENT(OUT) :: Value
INTEGER, INTENT(INOUT) :: CompIndex
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER HXAssistedCoilNum
! Obtains and allocates HXAssistedCoolingCoil related parameters from input file
IF (GetCoilsInputFlag) THEN ! First time subroutine has been called, get input data
! Get the HXAssistedCoolingCoil input
CALL GetHXAssistedCoolingCoilInput
GetCoilsInputFlag=.false. ! Set logic flag to disallow getting the input data on future calls to this subroutine
End If
! Find the correct Coil number
IF (CompIndex == 0) THEN
IF(TotalNumHXAssistedCoils .GT. 0)THEN
HXAssistedCoilNum = FindItem(CompName,HXAssistedCoil%Name,TotalNumHXAssistedCoils)
ELSE
HXAssistedCoilNum = 0
END IF
IF (HXAssistedCoilNum == 0) THEN
CALL ShowFatalError('CheckHXAssistedCoolingCoilSchedule: HX Assisted Coil not found='//TRIM(CompName))
ENDIF
CompIndex=HXAssistedCoilNum
Value=1.0d0 ! not scheduled?
ELSE
HXAssistedCoilNum=CompIndex
IF (HXAssistedCoilNum > TotalNumHXAssistedCoils .or. HXAssistedCoilNum < 1) THEN
CALL ShowFatalError('CheckHXAssistedCoolingCoilSchedule: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(HXAssistedCoilNum))// &
', Number of Heating Coils='//TRIM(TrimSigDigits(TotalNumHXAssistedCoils))// &
', Coil name='//TRIM(CompName))
ENDIF
IF (CompName /= HXAssistedCoil(HXAssistedCoilNum)%Name) THEN
CALL ShowFatalError('CheckHXAssistedCoolingCoilSchedule: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(HXAssistedCoilNum))// &
', Coil name='//TRIM(CompName)//', stored Coil Name for that index='// &
TRIM(HXAssistedCoil(HXAssistedCoilNum)%Name))
ENDIF
Value=1.0d0 ! not scheduled?
ENDIF
RETURN
END SUBROUTINE CheckHXAssistedCoolingCoilSchedule