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) | :: | iHour | |||
integer, | intent(in) | :: | iTimeStep | |||
real(kind=r64), | intent(in) | :: | EqOfTime | |||
real(kind=r64), | intent(in) | :: | SinSolarDeclin | |||
real(kind=r64), | intent(in) | :: | CosSolarDeclin |
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 FigureSunCosines(iHour, iTimeStep, EqOfTime, SinSolarDeclin, CosSolarDeclin)
! SUBROUTINE INFORMATION:
! AUTHOR B. Griffith
! DATE WRITTEN October 2012
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Determine solar position. Default for sun below horizon.
! METHODOLOGY EMPLOYED:
! Given hour, timestep, equation of time, solar declination sine, and solar declination cosine,
! determine sun directions for use elsewhere
! REFERENCES:
! na
! USE STATEMENTS:
USE DataGlobals, ONLY: TimeStepZone
USE DataSystemVariables, ONLY: DetailedSolarTimestepIntegration
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: iHour
INTEGER, INTENT(IN) :: iTimeStep
REAL(r64), INTENT(IN) :: EqOfTime ! value of Equation of Time for period
REAL(r64), INTENT(IN) :: SinSolarDeclin ! value of Sine of Solar Declination for period
REAL(r64), INTENT(IN) :: CosSolarDeclin ! value of Cosine of Solar Declination for period
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
REAL(r64) CurrentTime ! Current Time for passing to Solar Position Routine
IF (NumOfTimeStepInHour /= 1) THEN
CurrentTime=REAL(iHour-1,r64) + REAL(iTimeStep,r64)*(TimeStepZone)
ELSE
CurrentTime=REAL(iHour,r64)+TS1TimeOffset
ENDIF
CALL SUN4(CurrentTime,EqOfTime,SinSolarDeclin,CosSolarDeclin)
! Save hourly values for use in DaylightingManager
IF (.NOT. DetailedSolarTimestepIntegration) THEN
IF (iTimeStep == NumOfTimeStepInHour) SUNCOSHR(1:3,iHour) = SUNCOS
ELSE
SUNCOSHR(1:3,iHour) = SUNCOS
ENDIF
! Save timestep values for use in WindowComplexManager
SUNCOSTS(1:3,iHour,iTimeStep) = SUNCOS
RETURN
END SUBROUTINE FigureSunCosines