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) | :: | reportID | |||
character(len=*), | intent(in) | :: | reportIDString | |||
integer, | intent(in) | :: | timeIndex | |||
integer, | intent(in), | optional | :: | IntegerValue | ||
real(kind=r64), | intent(in), | optional | :: | RealValue |
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 WriteIntegerData (reportID, reportIDString, timeIndex, IntegerValue, RealValue)
! SUBROUTINE INFORMATION:
! AUTHOR Greg Stark
! DATE WRITTEN July 2008
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine writes integer data to the output files and
! SQL database. It supports the WriteIntegerVariableOutput subroutine.
! 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:
USE DataGlobals, ONLY: OutputFileStandard
USE General, ONLY: RemoveTrailingZeros
USE SQLiteProcedures
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: reportID ! the reporting ID of the data
CHARACTER(len=*), INTENT(IN) :: reportIDString ! the reporting ID of the data (character)
INTEGER, INTENT(IN) :: timeIndex ! an index that points to the data's timestamp
INTEGER, INTENT(IN), OPTIONAL :: IntegerValue ! the value of the data
REAL(r64), INTENT(IN), OPTIONAL :: RealValue ! the value of the data
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
CHARACTER(len=32) :: NumberOut ! Character for producing "number out"
REAL(r64) :: repValue ! for SQLite
IF (PRESENT(IntegerValue)) THEN
WRITE(NumberOut,*) IntegerValue
NumberOut = ADJUSTL(NumberOut)
repValue=IntegerValue
ENDIF
IF (PRESENT(RealValue)) THEN
repValue=RealValue
IF (RealValue == 0.0d0) THEN
NumberOut = '0.0'
ELSE
WRITE(NumberOut,*) RealValue
NumberOut = ADJUSTL(NumberOut)
NumberOut = RemoveTrailingZeros(NumberOut)
ENDIF
ENDIF
IF (WriteOutputToSQLite) THEN
CALL CreateSQLiteReportVariableDataRecord(reportID, TimeIndex, repValue)
END IF
WRITE(OutputFileStandard, fmta) TRIM(reportIDString)//','//TRIM(NumberOut)
RETURN
END SUBROUTINE WriteIntegerData