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) | :: | ScheduleIndex | |||
real(kind=r64), | intent(out) | :: | DayValues(:,:) | |||
integer, | intent(in), | optional | :: | JDay | ||
integer, | intent(in), | optional | :: | CurDayofWeek |
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 GetScheduleValuesForDay(ScheduleIndex,DayValues,JDay,CurDayofWeek)
! SUBROUTINE INFORMATION:
! AUTHOR Linda K. Lawrie
! DATE WRITTEN September 1997
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine returns an entire day's worth of schedule values.
! METHODOLOGY EMPLOYED:
! Use internal data to fill DayValues array.
! REFERENCES:
! na
! USE STATEMENTS:
USE DataEnvironment, ONLY: DayOfYear_Schedule
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: ScheduleIndex
REAL(r64), INTENT(OUT) :: DayValues(:,:)
INTEGER, INTENT(IN), OPTIONAL :: JDay
INTEGER, INTENT(IN), OPTIONAL :: CurDayofWeek
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER WeekSchedulePointer
INTEGER DaySchedulePointer
IF (.not. ScheduleInputProcessed) THEN
CALL ProcessScheduleInput
ScheduleInputProcessed=.True.
ENDIF
IF (ScheduleIndex == -1) THEN
DayValues(1:24,1:NumOfTimeStepInHour)=1.0d0
RETURN
ELSEIF (ScheduleIndex == 0) THEN
DayValues(1:24,1:NumOfTimeStepInHour)=0.0d0
RETURN
ENDIF
! Determine which Week Schedule is used
IF (.not. PRESENT(JDay)) THEN
WeekSchedulePointer=Schedule(ScheduleIndex)%WeekSchedulePointer(DayOfYear_Schedule)
ELSE
WeekSchedulePointer=Schedule(ScheduleIndex)%WeekSchedulePointer(JDay)
ENDIF
! Now, which day?
IF (.not. PRESENT(CurDayofWeek)) THEN
IF (DayofWeek <= 7 .and. HolidayIndex > 0) THEN
DaySchedulePointer=WeekSchedule(WeekSchedulePointer)%DaySchedulePointer(7+HolidayIndex)
ELSE
DaySchedulePointer=WeekSchedule(WeekSchedulePointer)%DaySchedulePointer(DayofWeek)
ENDIF
ELSEIF (CurDayofWeek <= 7 .and. HolidayIndex > 0) THEN
DaySchedulePointer=WeekSchedule(WeekSchedulePointer)%DaySchedulePointer(7+HolidayIndex)
ELSE
DaySchedulePointer=WeekSchedule(WeekSchedulePointer)%DaySchedulePointer(CurDayofWeek)
ENDIF
! Return Values
DayValues(1:24,1:NumOfTimeStepInHour)=DaySchedule(DaySchedulePointer)%TSValue
RETURN
END SUBROUTINE GetScheduleValuesForDay