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.
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 CalcSpecialDayTypes
! SUBROUTINE INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN June 2000
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine creates the array of Special Day types used during
! the simulation.
! METHODOLOGY EMPLOYED:
! Sets up the SpecialDayTypes array that then is used during simulation.
! Uses WFLeapYearInd to indicate Leap Year simulation runs.
! REFERENCES:
! na
! USE STATEMENTS:
USE General, ONLY: JulianDay
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
! na
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER Loop
INTEGER Loop1
INTEGER JDay
INTEGER Warn
SpecialDayTypes=0 ! Initialize/Reset Special Day Types array
DO Loop=1,NumSpecialDays
IF (SpecialDays(Loop)%WthrFile) CYCLE
Warn=0
JDay=JulianDay(SpecialDays(Loop)%Month,SpecialDays(Loop)%Day,LeapYearAdd)-1
DO Loop1=1,SpecialDays(Loop)%Duration
JDay=JDay+1
IF (JDay > 366) THEN
CALL ShowWarningError('SpecialDay='//TRIM(SpecialDays(Loop)%Name)// &
' causes index of more than 366, ignoring those beyond 366')
ELSE
IF (SpecialDayTypes(JDay) /= 0 .and. Warn == 0) THEN
CALL ShowWarningError('SpecialDay='//TRIM(SpecialDays(Loop)%Name)// &
' attempted overwrite of previous set special day')
Warn=1
ELSEIF (SpecialDayTypes(JDay) == 0) THEN
SpecialDayTypes(JDay)=SpecialDays(Loop)%DayType
ENDIF
ENDIF
ENDDO
ENDDO
RETURN
END SUBROUTINE CalcSpecialDayTypes