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) | :: | CtrlName | |||
integer, | intent(inout) | :: | CtrlIndex | |||
logical, | intent(in) | :: | FirstHVACIteration | |||
integer, | intent(in) | :: | AirLoopNum |
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 SimOAController(CtrlName,CtrlIndex,FirstHVACIteration,AirLoopNum)
! SUBROUTINE INFORMATION:
! AUTHOR Fred Buhl
! DATE WRITTEN Oct 1998
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE
! Simulate an Outside Air Controller component
! METHODOLOGY EMPLOYED:
! REFERENCES:
! USE STATEMENTS:
USE InputProcessor, ONLY: FindItemInList
IMPLICIT NONE
! SUBROUTINE ARGUMENT DEFINITIONS
CHARACTER(len=*), INTENT(IN) :: CtrlName
INTEGER, INTENT(INOUT) :: CtrlIndex
LOGICAL, INTENT(IN) :: FirstHVACIteration
INTEGER, INTENT(IN) :: AirLoopNum
! SUBROUTINE PARAMETER DEFINITIONS:
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: OAControllerNum
IF (GetOAControllerInputFlag) THEN ! Gets input for object first time Sim routine is called
CALL GetOAControllerInputs
GetOAControllerInputFlag=.false.
END IF
IF (CtrlIndex == 0) THEN
IF(NumOAControllers .GT. 0)THEN
OAControllerNum=FindItemInList(CtrlName,OAController%Name,NumOAControllers)
ELSE
OAControllerNum=0
END IF
CtrlIndex=OAControllerNum
IF (OAControllerNum == 0) THEN
CALL ShowFatalError('SimOAController: Outside Air Controller not found='//TRIM(CtrlName))
ENDIF
ELSE
OAControllerNum = CtrlIndex
ENDIF
CALL InitOAController(OAControllerNum,FirstHVACIteration,AirLoopNum)
CALL CalcOAController(OAControllerNum,AirLoopNum)
CALL UpdateOAController(OAControllerNum)
CALL ReportOAController(OAControllerNum)
RETURN
END SUBROUTINE SimOAController