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 CheckWaterCoilSchedule(CompType,CompName,Value,CompIndex)
! SUBROUTINE INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN October 2005
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! <description>
! METHODOLOGY EMPLOYED:
! <description>
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: FindItemInList
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 WaterCoil related parameters from input file
IF (GetWaterCoilsInputFlag) THEN !First time subroutine has been entered
CALL GetWaterCoilInput
GetWaterCoilsInputFlag=.false.
End If
! Find the correct Coil number
IF (CompIndex == 0) THEN
CoilNum = FindItemInList(CompName,WaterCoil%Name,NumWaterCoils)
IF (CoilNum == 0) THEN
CALL ShowFatalError('CheckWaterCoilSchedule: Coil not found='//TRIM(CompName))
ENDIF
CompIndex=CoilNum
Value=GetCurrentScheduleValue(WaterCoil(CoilNum)%SchedPtr) ! not scheduled?
ELSE
CoilNum=CompIndex
IF (CoilNum > NumWaterCoils .or. CoilNum < 1) THEN
CALL ShowFatalError('CheckWaterCoilSchedule: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(CoilNum))// &
', Number of Heating Coils='//TRIM(TrimSigDigits(NumWaterCoils))// &
', Coil name='//TRIM(CompName))
ENDIF
IF (CompName /= WaterCoil(CoilNum)%Name) THEN
CALL ShowFatalError('CheckWaterCoilSchedule: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(CoilNum))// &
', Coil name='//TRIM(CompName)//', stored Coil Name for that index='// &
TRIM(WaterCoil(CoilNum)%Name))
ENDIF
Value=GetCurrentScheduleValue(WaterCoil(CoilNum)%SchedPtr) ! not scheduled?
ENDIF
RETURN
END SUBROUTINE CheckWaterCoilSchedule