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.
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 ReportHRMeters
! SUBROUTINE INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN January 2001
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine reports on the meters that have been requested for
! reporting on each hour.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE General, ONLY: RemoveTrailingZeros,TrimSigDigits
USE SQLiteProcedures, ONLY: SQLdbTimeIndex
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 ! Loop Control
LOGICAL PrintTimeStamp
INTEGER CurDayType
REAL(r64) :: rDummy1=0.0d0
REAL(r64) :: rDummy2=0.0d0
INTEGER :: iDummy1=0
INTEGER :: iDummy2=0
CHARACTER(len=16) :: cReportID
PrintTimeStamp=.true.
DO Loop=1,NumEnergyMeters
IF (.not. EnergyMeters(Loop)%RptHR .and. .not. EnergyMeters(Loop)%RptAccHR) CYCLE
IF (PrintTimeStamp) THEN
CurDayType=DayOfWeek
IF (HolidayIndex > 0) THEN
CurDayType=7+HolidayIndex
ENDIF
SQLdbTimeIndex = WriteTimeStampFormatData (OutputFileMeters, ReportHourly, TimeStepStampReportNbr, TimeStepStampReportChr, &
DayOfSim, DayOfSimChr, Month, DayOfMonth, HourOfDay, DST=DSTIndicator, DayType=DayTypes(CurDayType))
PrintTimeStamp=.false.
ENDIF
IF (EnergyMeters(Loop)%RptHR) THEN
CALL WriteReportMeterData (EnergyMeters(Loop)%HRRptNum, EnergyMeters(Loop)%HRRptNumChr, SQLdbTimeIndex, &
EnergyMeters(Loop)%HRValue, &
ReportHourly, &
rDummy1,iDummy1, & !EnergyMeters(Loop)%HRMinVal, EnergyMeters(Loop)%HRMinValDate, &
rDummy2,iDummy2, & !EnergyMeters(Loop)%HRMaxVal, EnergyMeters(Loop)%HRMaxValDate, &
EnergyMeters(Loop)%RptHRFO)
EnergyMeters(Loop)%HRValue=0.0d0
EnergyMeters(Loop)%HRMinVal=MinSetValue
EnergyMeters(Loop)%HRMaxVal=MaxSetValue
ENDIF
IF (EnergyMeters(Loop)%RptAccHR) THEN
WRITE(cReportID,*) EnergyMeters(Loop)%HRAccRptNum
cReportID=adjustl(cReportID)
CALL WriteCumulativeReportMeterData (EnergyMeters(Loop)%HRAccRptNum, cReportID, SQLdbTimeIndex, &
EnergyMeters(Loop)%SMValue, EnergyMeters(Loop)%RptAccHRFO)
ENDIF
ENDDO
RETURN
END SUBROUTINE ReportHRMeters