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 ReportSMMeters
! 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 environment/run period.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE General, ONLY: RemoveTrailingZeros,TrimSigDigits
USE SQLiteProcedures, ONLY: SQLdbTimeIndex
! USE OutputReportPredefined
use dataglobals, only: outputfiledebug !,DoingPredefinedAndTabularReporting
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
! na
! SUBROUTINE PARAMETER DEFINITIONS:
REAL(r64), PARAMETER :: convertJtoGJ = 1.0d0/1000000000.0d0
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER Loop ! Loop Control
LOGICAL PrintTimeStamp
CHARACTER(len=16) :: cReportID
PrintTimeStamp=.true.
DO Loop=1,NumEnergyMeters
EnergyMeters(Loop)%LastSMValue=EnergyMeters(Loop)%SMValue
EnergyMeters(Loop)%LastSMMinVal=EnergyMeters(Loop)%SMMinVal
EnergyMeters(Loop)%LastSMMinValDate=EnergyMeters(Loop)%SMMinValDate
EnergyMeters(Loop)%LastSMMaxVal=EnergyMeters(Loop)%SMMaxVal
EnergyMeters(Loop)%LastSMMaxValDate=EnergyMeters(Loop)%SMMaxValDate
IF (.not. EnergyMeters(Loop)%RptSM .and. .not. EnergyMeters(Loop)%RptAccSM) CYCLE
IF (PrintTimeStamp) THEN
SQLdbTimeIndex = WriteTimeStampFormatData (OutputFileMeters, ReportSim, &
RunPeriodStampReportNbr, RunPeriodStampReportChr, DayOfSim, DayOfSimChr)
PrintTimeStamp=.false.
ENDIF
IF (EnergyMeters(Loop)%RptSM) THEN
CALL WriteReportMeterData (EnergyMeters(Loop)%SMRptNum, EnergyMeters(Loop)%SMRptNumChr, SQLdbTimeIndex, &
EnergyMeters(Loop)%SMValue, &
ReportSim, &
EnergyMeters(Loop)%SMMinVal, EnergyMeters(Loop)%SMMinValDate, &
EnergyMeters(Loop)%SMMaxVal, EnergyMeters(Loop)%SMMaxValDate, &
EnergyMeters(Loop)%RptSMFO)
ENDIF
IF (EnergyMeters(Loop)%RptAccSM) THEN
WRITE(cReportID,*) EnergyMeters(Loop)%SMAccRptNum
cReportID=adjustl(cReportID)
CALL WriteCumulativeReportMeterData (EnergyMeters(Loop)%SMAccRptNum, cReportID, SQLdbTimeIndex, &
EnergyMeters(Loop)%SMValue, EnergyMeters(Loop)%RptAccSMFO)
ENDIF
ENDDO
IF (NumEnergyMeters > 0) THEN
EnergyMeters%SMValue=0.0d0
EnergyMeters%SMMinVal=MinSetValue
EnergyMeters%SMMaxVal=MaxSetValue
ENDIF
RETURN
END SUBROUTINE ReportSMMeters