Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | UpdateType | |||
logical, | intent(in) | :: | ShortenTimeStepSys | |||
logical, | intent(in) | :: | UseZoneTimeStepHistory | |||
real(kind=r64), | intent(in) | :: | PriorTimeStep |
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 ManageZoneContaminanUpdates(UpdateType, ShortenTimeStepSys, &
UseZoneTimeStepHistory, PriorTimeStep )
! SUBROUTINE INFORMATION
! AUTHOR Lixing Gu
! DATE WRITTEN July, 2010
! MODIFIED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine predicts or corrects the zone air temperature
! depending on the simulation status and determines the correct
! temperature setpoint for each zone from the schedule manager.
! This module is revised from subroutine ManageZoneAirUpdates in
! ZoneTempPredictorCorrector module.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: UpdateType ! Can be iGetZoneSetpoints, iPredictStep, iCorrectStep
LOGICAL, INTENT(IN) :: ShortenTimeStepSys
LOGICAL, INTENT(IN) :: UseZoneTimeStepHistory ! if true then use zone timestep history, if false use system time step
REAL(r64), INTENT(IN) :: PriorTimeStep ! the old value for timestep length is passed for possible use in interpolating
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
!unused1208 INTEGER :: zoneloop
IF (GetZoneAirContamInputFlag) THEN
If (Contaminant%GenericContamSimulation) CALL GetZoneContaminanInputs
CALL GetZoneContaminanSetpoints
GetZoneAirContamInputFlag = .FALSE.
END IF
IF (.NOT. Contaminant%SimulateContaminants) Return
SELECT CASE(UpdateType)
CASE(iGetZoneSetpoints)
CALL InitZoneContSetpoints
CASE(iPredictStep)
CALL PredictZoneContaminants(ShortenTimeStepSys, UseZoneTimeStepHistory, PriorTimeStep )
CASE(iCorrectStep)
CALL CorrectZoneContaminants(ShortenTimeStepSys, UseZoneTimeStepHistory, PriorTimeStep)
CASE (iRevertZoneTimestepHistories)
Call RevertZoneTimestepHistories
CASE (iPushZoneTimestepHistories)
Call PushZoneTimestepHistories
CASE (iPushSystemTimestepHistories)
Call PushSystemTimestepHistories
END SELECT
RETURN
END SUBROUTINE ManageZoneContaminanUpdates