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 CheckSteamCoilSchedule(CompType,CompName,Value,CompIndex)
! SUBROUTINE INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN March 2006
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Gets the correct schedule value for this coil
! METHODOLOGY EMPLOYED:
! na
! 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
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 SteamCoil related parameters from input file
IF (GetSteamCoilsInputFlag) THEN !First time subroutine has been entered
CALL GetSteamCoilInput
GetSteamCoilsInputFlag=.false.
End If
! Find the correct Coil number
IF (CompIndex == 0) THEN
CoilNum = FindItemInList(CompName,SteamCoil%Name,NumSteamCoils)
IF (CoilNum == 0) THEN
CALL ShowFatalError('CheckSteamCoilSchedule: Coil not found='//TRIM(CompName))
ENDIF
CompIndex=CoilNum
Value=GetCurrentScheduleValue(SteamCoil(CoilNum)%SchedPtr) ! not scheduled?
ELSE
CoilNum=CompIndex
IF (CoilNum > NumSteamCoils .or. CoilNum < 1) THEN
CALL ShowFatalError('SimulateSteamCoilComponents: Invalid CompIndex passed='//TRIM(TrimSigDigits(CoilNum))// &
', Number of Steam Coils='//TRIM(TrimSigDigits(NumSteamCoils))//', Coil name='//TRIM(CompName))
ENDIF
IF (CompName /= SteamCoil(CoilNum)%Name) THEN
CALL ShowFatalError('SimulateSteamCoilComponents: Invalid CompIndex passed='//TRIM(TrimSigDigits(CoilNum))// &
', Coil name='//TRIM(CompName)//', stored Coil Name for that index='//TRIM(SteamCoil(CoilNum)%Name))
ENDIF
Value=GetCurrentScheduleValue(SteamCoil(CoilNum)%SchedPtr) ! not scheduled?
ENDIF
RETURN
END SUBROUTINE CheckSteamCoilSchedule