Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(out) | :: | HighTempRadSysOn |
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 UpdateHTRadSourceValAvg(HighTempRadSysOn)
! SUBROUTINE INFORMATION:
! AUTHOR Rick Strand
! DATE WRITTEN February 2001
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! To transfer the average value of the heat source over the entire
! zone time step back to the heat balance routines so that the heat
! balance algorithms can simulate one last time with the average source
! to maintain some reasonable amount of continuity and energy balance
! in the temperature and flux histories.
! METHODOLOGY EMPLOYED:
! All of the record keeping for the average term is done in the Update
! routine so the only other thing that this subroutine does is check to
! see if the system was even on. If any average term is non-zero, then
! one or more of the radiant systems was running.
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
LOGICAL, INTENT(OUT) :: HighTempRadSysOn ! .TRUE. if the radiant system has run this zone time step
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: RadSysNum ! DO loop counter for surface index
! FLOW:
HighTempRadSysOn = .FALSE.
! If this was never allocated, then there are no radiant systems in this input file (just RETURN)
IF (.NOT.ALLOCATED(QHTRadSrcAvg)) RETURN
! If it was allocated, then we have to check to see if this was running at all...
DO RadSysNum = 1, NumOfHighTempRadSys
IF (QHTRadSrcAvg(RadSysNum) /= 0.0D0) THEN
HighTempRadSysOn = .TRUE.
EXIT !DO loop
END IF
END DO
QHTRadSource = QHTRadSrcAvg
CALL DistributeHTRadGains ! QHTRadSource has been modified so we need to redistribute gains
RETURN
END SUBROUTINE UpdateHTRadSourceValAvg