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 ReportForTabularReports
! SUBROUTINE INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN August 2013
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine is called after all the simulation is done and before
! tabular reports in order to reduce the number of calls to the predefined routine
! for SM (Simulation period) meters, the value of the last calculation is stored
! in the data structure.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE OutputReportPredefined
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
DO Loop=1,NumEnergyMeters
SELECT CASE(EnergyMeters(Loop)%RT_forIPUnits)
CASE(RT_IPUnits_Electricity)
CALL PreDefTableEntry(pdchEMelecannual,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMValue*convertJtoGJ)
CALL PreDefTableEntry(pdchEMelecminvalue,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMMinVal/SecondsPerTimeStep)
CALL PreDefTableEntry(pdchEMelecminvaluetime,EnergyMeters(Loop)%Name, &
DateToStringWithMonth(EnergyMeters(Loop)%LastSMMinValDate))
CALL PreDefTableEntry(pdchEMelecmaxvalue,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMMaxVal/SecondsPerTimeStep)
CALL PreDefTableEntry(pdchEMelecmaxvaluetime,EnergyMeters(Loop)%Name, &
DateToStringWithMonth(EnergyMeters(Loop)%LastSMMaxValDate))
CASE(RT_IPUnits_Gas)
CALL PreDefTableEntry(pdchEMgasannual,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMValue*convertJtoGJ)
CALL PreDefTableEntry(pdchEMgasminvalue,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMMinVal/SecondsPerTimeStep)
CALL PreDefTableEntry(pdchEMgasminvaluetime,EnergyMeters(Loop)%Name, &
DateToStringWithMonth(EnergyMeters(Loop)%LastSMMinValDate))
CALL PreDefTableEntry(pdchEMgasmaxvalue,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMMaxVal/SecondsPerTimeStep)
CALL PreDefTableEntry(pdchEMgasmaxvaluetime,EnergyMeters(Loop)%Name, &
DateToStringWithMonth(EnergyMeters(Loop)%LastSMMaxValDate))
CASE(RT_IPUnits_Cooling)
CALL PreDefTableEntry(pdchEMcoolannual,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMValue*convertJtoGJ)
CALL PreDefTableEntry(pdchEMcoolminvalue,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMMinVal/SecondsPerTimeStep)
CALL PreDefTableEntry(pdchEMcoolminvaluetime,EnergyMeters(Loop)%Name, &
DateToStringWithMonth(EnergyMeters(Loop)%LastSMMinValDate))
CALL PreDefTableEntry(pdchEMcoolmaxvalue,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMMaxVal/SecondsPerTimeStep)
CALL PreDefTableEntry(pdchEMcoolmaxvaluetime,EnergyMeters(Loop)%Name, &
DateToStringWithMonth(EnergyMeters(Loop)%LastSMMaxValDate))
CASE(RT_IPUnits_Water)
CALL PreDefTableEntry(pdchEMwaterannual,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMValue)
CALL PreDefTableEntry(pdchEMwaterminvalue,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMMinVal/SecondsPerTimeStep)
CALL PreDefTableEntry(pdchEMwaterminvaluetime,EnergyMeters(Loop)%Name, &
DateToStringWithMonth(EnergyMeters(Loop)%LastSMMinValDate))
CALL PreDefTableEntry(pdchEMwatermaxvalue,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMMaxVal/SecondsPerTimeStep)
CALL PreDefTableEntry(pdchEMwatermaxvaluetime,EnergyMeters(Loop)%Name, &
DateToStringWithMonth(EnergyMeters(Loop)%LastSMMaxValDate))
CASE(RT_IPUnits_OtherKG)
CALL PreDefTableEntry(pdchEMotherKGannual,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMValue)
CALL PreDefTableEntry(pdchEMotherKGminvalue,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMMinVal/SecondsPerTimeStep,3)
CALL PreDefTableEntry(pdchEMotherKGminvaluetime,EnergyMeters(Loop)%Name, &
DateToStringWithMonth(EnergyMeters(Loop)%LastSMMinValDate))
CALL PreDefTableEntry(pdchEMotherKGmaxvalue,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMMaxVal/SecondsPerTimeStep,3)
CALL PreDefTableEntry(pdchEMotherKGmaxvaluetime,EnergyMeters(Loop)%Name, &
DateToStringWithMonth(EnergyMeters(Loop)%LastSMMaxValDate))
CASE(RT_IPUnits_OtherM3)
CALL PreDefTableEntry(pdchEMotherM3annual,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMValue,3)
CALL PreDefTableEntry(pdchEMotherM3minvalue,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMMinVal/SecondsPerTimeStep,3)
CALL PreDefTableEntry(pdchEMotherM3minvaluetime,EnergyMeters(Loop)%Name, &
DateToStringWithMonth(EnergyMeters(Loop)%LastSMMinValDate))
CALL PreDefTableEntry(pdchEMotherM3maxvalue,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMMaxVal/SecondsPerTimeStep,3)
CALL PreDefTableEntry(pdchEMotherM3maxvaluetime,EnergyMeters(Loop)%Name, &
DateToStringWithMonth(EnergyMeters(Loop)%LastSMMaxValDate))
CASE(RT_IPUnits_OtherL)
CALL PreDefTableEntry(pdchEMotherLannual,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMValue,3)
CALL PreDefTableEntry(pdchEMotherLminvalue,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMMinVal/SecondsPerTimeStep,3)
CALL PreDefTableEntry(pdchEMotherLminvaluetime,EnergyMeters(Loop)%Name, &
DateToStringWithMonth(EnergyMeters(Loop)%LastSMMinValDate))
CALL PreDefTableEntry(pdchEMotherLmaxvalue,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMMaxVal/SecondsPerTimeStep,3)
CALL PreDefTableEntry(pdchEMotherLmaxvaluetime,EnergyMeters(Loop)%Name, &
DateToStringWithMonth(EnergyMeters(Loop)%LastSMMaxValDate))
CASE DEFAULT
CALL PreDefTableEntry(pdchEMotherJannual,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMValue*convertJtoGJ)
CALL PreDefTableEntry(pdchEMotherJminvalue,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMMinVal/SecondsPerTimeStep)
CALL PreDefTableEntry(pdchEMotherJminvaluetime,EnergyMeters(Loop)%Name, &
DateToStringWithMonth(EnergyMeters(Loop)%LastSMMinValDate))
CALL PreDefTableEntry(pdchEMotherJmaxvalue,EnergyMeters(Loop)%Name,EnergyMeters(Loop)%LastSMMaxVal/SecondsPerTimeStep)
CALL PreDefTableEntry(pdchEMotherJmaxvaluetime,EnergyMeters(Loop)%Name, &
DateToStringWithMonth(EnergyMeters(Loop)%LastSMMaxValDate))
END SELECT
ENDDO
RETURN
END SUBROUTINE ReportForTabularReports