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 CreateSQLiteConstructionsTable
! SUBROUTINE INFORMATION:
! AUTHOR Greg Stark
! DATE WRITTEN July 2008
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine writes the constructions data to the SQL database
!
! METHODOLOGY EMPLOYED:
! Standard SQL92 queries and commands via the Fortran SQLite3 API
! REFERENCES:
! na
! USE STATEMENTS:
USE DataGlobals
USE DataHeatBalance
! USE InputProcessor, ONLY: GetNumObjectsFound
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 :: ConstructNum, LayerNum
INTEGER :: result
DO ConstructNum = 1, TotConstructs
result = SQLiteBindInteger (ConstructionInsertStmt, 1, ConstructNum)
result = SQLiteBindTextMacro (ConstructionInsertStmt, 2, Construct(ConstructNum)%Name)
result = SQLiteBindInteger (ConstructionInsertStmt, 3, Construct(ConstructNum)%TotLayers)
result = SQLiteBindInteger (ConstructionInsertStmt, 4, Construct(ConstructNum)%TotSolidLayers)
result = SQLiteBindInteger (ConstructionInsertStmt, 5, Construct(ConstructNum)%TotGlassLayers)
DO LayerNum = 1, Construct(ConstructNum)%TotLayers
result = SQLiteBindInteger (ConstructionLayerInsertStmt, 1, ConstructNum)
result = SQLiteBindInteger (ConstructionLayerInsertStmt, 2, LayerNum)
result = SQLiteBindInteger (ConstructionLayerInsertStmt, 3, Construct(ConstructNum)%LayerPoint(LayerNum))
result = SQLiteStepCommand (ConstructionLayerInsertStmt)
result = SQLiteResetCommand (ConstructionLayerInsertStmt)
END DO
result = SQLiteBindDouble (ConstructionInsertStmt, 6, Construct(ConstructNum)%InsideAbsorpVis)
result = SQLiteBindDouble (ConstructionInsertStmt, 7, Construct(ConstructNum)%OutsideAbsorpVis)
result = SQLiteBindDouble (ConstructionInsertStmt, 8, Construct(ConstructNum)%InsideAbsorpSolar)
result = SQLiteBindDouble (ConstructionInsertStmt, 9, Construct(ConstructNum)%OutsideAbsorpSolar)
result = SQLiteBindDouble (ConstructionInsertStmt, 10, Construct(ConstructNum)%InsideAbsorpThermal)
result = SQLiteBindDouble (ConstructionInsertStmt, 11, Construct(ConstructNum)%OutsideAbsorpThermal)
result = SQLiteBindInteger (ConstructionInsertStmt, 12, Construct(ConstructNum)%OutsideRoughness)
result = SQLiteBindLogicalMacro (ConstructionInsertStmt, 13, Construct(ConstructNum)%TypeIsWindow)
IF (Construct(ConstructNum)%TotGlassLayers == 0) THEN
result = SQLiteBindDouble (ConstructionInsertStmt, 14, Construct(ConstructNum)%Uvalue)
ELSE
result = SQLiteBindDouble (ConstructionInsertStmt, 14, NominalU(ConstructNum))
END IF
result = SQLiteStepCommand (ConstructionInsertStmt)
result = SQLiteResetCommand (ConstructionInsertStmt)
END DO
END SUBROUTINE CreateSQLiteConstructionsTable