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 | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | AirLoopNum | |||
integer, | intent(in) | :: | AirLoopControlNum |
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 TrackAirLoopController( AirLoopNum, AirLoopControlNum )
! SUBROUTINE INFORMATION:
! AUTHOR Dimitri Curtil
! DATE WRITTEN April 2006
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Updates runtime statistics for the specified controller.
! Used to produce objective metrics when analyzing runtime performance
! of HVAC controllers for different implementations.
!
! METHODOLOGY EMPLOYED:
! Needs description, as appropriate.
! REFERENCES:
! na
! USE STATEMENTS:
USE DataHVACGlobals, ONLY : NumPrimaryAirSys
USE DataAirSystems, ONLY : PrimaryAirSystem
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
! na
! SUBROUTINE PARAMETER DEFINITIONS:
INTEGER, INTENT(IN) :: AirLoopNum ! Air loop index
INTEGER, INTENT(IN) :: AirLoopControlNum ! Controller index on this air loop
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
! Corresponding index in ControllerProps array
INTEGER :: ControlIndex
! Number of iterations needed to solve this controller
INTEGER :: IterationCount
! Current operating mode
INTEGER :: Mode
! FLOW
ControlIndex = PrimaryAirSystem(AirLoopNum)%ControllerIndex(AirLoopControlNum)
! We use NumCalcCalls instead of the iteration counter used in SolveAirLoopControllers()
! to avoid having to call TrackAirLoopController() directly from SolveAirLoopControllers().
!
! The 2 counters should be the same anyway as NumCalcCalls is first reset to zero and
! incremented each time ManageControllers() is invoked with iControllerOpIterate
IterationCount = ControllerProps(ControlIndex)%NumCalcCalls
Mode = ControllerProps(ControlIndex)%Mode
IF ( Mode /= iModeNone ) THEN
AirLoopStats(AirLoopNum)%ControllerStats(AirLoopControlNum)%NumCalls(Mode) = &
AirLoopStats(AirLoopNum)%ControllerStats(AirLoopControlNum)%NumCalls(Mode) + 1
AirLoopStats(AirLoopNum)%ControllerStats(AirLoopControlNum)%TotIterations(Mode) = &
AirLoopStats(AirLoopNum)%ControllerStats(AirLoopControlNum)%TotIterations(Mode) + &
IterationCount
AirLoopStats(AirLoopNum)%ControllerStats(AirLoopControlNum)%MaxIterations(Mode) = MAX( &
AirLoopStats(AirLoopNum)%ControllerStats(AirLoopControlNum)%MaxIterations(Mode), &
IterationCount &
)
END IF
RETURN
END SUBROUTINE TrackAirLoopController