Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | reportType | |||
integer, | intent(in) | :: | timeIndex |
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 WriteRealVariableOutput (reportType, timeIndex)
! SUBROUTINE INFORMATION:
! AUTHOR Greg Stark
! DATE WRITTEN August 2008
! MODIFIED April 2011; Linda Lawrie
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine writes real report variable data to the output file and
! SQL database. Much of the code here was an included in earlier versions
! of the UpdateDataandReport subroutine. The code was moved to facilitate
! easier maintenance and writing of data to the SQL database.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: reportType ! The report type or interval (e.g., hourly)
INTEGER, INTENT(IN) :: timeIndex ! An index that points to the timestamp
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
! na
IF (RVar%Report .and. RVar%ReportFreq == reportType .and. RVar%Stored) THEN
IF (RVar%NumStored > 0.0d0) THEN
CALL WriteReportRealData (RVar%ReportID, RVar%ReportIDChr, TimeIndex, &
RVar%StoreValue, RVar%StoreType, RVar%NumStored, RVar%ReportFreq, RVar%MinValue, &
RVar%minValueDate, RVar%MaxValue, RVar%maxValueDate)
StdOutputRecordCount = StdOutputRecordCount + 1
ENDIF
RVar%StoreValue = 0.0d0
RVar%NumStored = 0.0d0
RVar%MinValue = MinSetValue
RVar%MaxValue = MaxSetValue
RVar%Stored = .false.
ENDIF
RETURN
END SUBROUTINE WriteRealVariableOutput