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 CheckHeatingCoilSchedule(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 heating coil is scheduled to be on.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: FindItem,SameString
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 CoilNum
! Obtains and Allocates HeatingCoil related parameters from input file
IF (GetCoilsInputFlag) THEN !First time subroutine has been entered
CALL GetHeatingCoilInput
GetCoilsInputFlag=.false.
End If
! Find the correct Coil number
IF (CompIndex == 0) THEN
CoilNum = FindItem(CompName,HeatingCoil%Name,NumHeatingCoils)
IF (CoilNum == 0) THEN
CALL ShowFatalError('CheckHeatingCoilSchedule: Coil not found="'//TRIM(CompName)//'".')
ENDIF
IF (.not. SameString(CompType,cAllCoilTypes(HeatingCoil(CoilNum)%HCoilType_Num))) THEN
CALL ShowSevereError('CheckHeatingCoilSchedule: Coil="'//trim(CompName)//'"')
CALL ShowContinueError('...expected type="'//trim(CompType)//'", actual type="'// &
trim(cAllCoilTypes(HeatingCoil(CoilNum)%HCoilType_Num))//'".')
CALL ShowFatalError('Program terminates due to preceding conditions.')
ENDIF
CompIndex=CoilNum
Value=GetCurrentScheduleValue(HeatingCoil(CoilNum)%SchedPtr) ! not scheduled?
ELSE
CoilNum=CompIndex
IF (CoilNum > NumHeatingCoils .or. CoilNum < 1) THEN
CALL ShowFatalError('CheckHeatingCoilSchedule: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(CoilNum))// &
', Number of Heating Coils='//TRIM(TrimSigDigits(NumHeatingCoils))// &
', Coil name='//TRIM(CompName))
ENDIF
IF (CompName /= HeatingCoil(CoilNum)%Name) THEN
CALL ShowSevereError('CheckHeatingCoilSchedule: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(CoilNum))// &
', Coil name='//TRIM(CompName)//', stored Coil Name for that index='// &
TRIM(HeatingCoil(CoilNum)%Name))
CALL ShowContinueError('...expected type="'//trim(CompType)//'", actual type="'// &
trim(cAllCoilTypes(HeatingCoil(CoilNum)%HCoilType_Num))//'".')
CALL ShowFatalError('Program terminates due to preceding conditions.')
ENDIF
Value=GetCurrentScheduleValue(HeatingCoil(CoilNum)%SchedPtr) ! not scheduled?
ENDIF
RETURN
END SUBROUTINE CheckHeatingCoilSchedule