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) | :: | LoopNum | |||
integer, | intent(in) | :: | CurSchemePtr | |||
integer, | intent(in) | :: | CurSchemeType |
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.
REAL(r64) FUNCTION FindRangeVariable (LoopNum, CurSchemePtr, CurSchemeType)
! SUBROUTINE INFORMATION:
! AUTHOR Sankaranarayanan K P
! DATE WRITTEN Jan 2004
! MODIFIED Chandan Sharma, August 2010
! RE-ENGINEERED na
! USE STATEMENTS:
USE DataLoopNode
USE DataEnvironment, ONLY: OutWetBulbTemp, OutDryBulbTemp, OutDewPointTemp
IMPLICIT NONE
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: LoopNum ! PlantLoop data structure loop counter
INTEGER, INTENT(IN) :: CurSchemePtr ! set by PL()%LoopSide()%Branch()%Comp()%Opscheme()%OpSchemePtr
! used to locate data in PL()%Opscheme(CurSchemePtr)
INTEGER, INTENT(IN) :: CurSchemeType ! identifier set in PlantData
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: ReferenceNodeNum
REAL(r64) :: NodeTemperature
OperationScheme: SELECT CASE (CurSchemeType)
CASE (DrybulbTDBOpSchemeType) ! drybulb temp based controls
ReferenceNodeNum = PlantLoop(LoopNum)%OpScheme(CurSchemePtr)%ReferenceNodeNumber
NodeTemperature = Node(ReferenceNodeNum)%Temp
FindRangeVariable = NodeTemperature - OutDryBulbTemp
CASE (WetBulbTDBOpSchemeType) ! wetbulb temp based controls
ReferenceNodeNum = PlantLoop(LoopNum)%OpScheme(CurSchemePtr)%ReferenceNodeNumber
NodeTemperature = Node(ReferenceNodeNum)%Temp
FindRangeVariable = NodeTemperature - OutWetBulbTemp
CASE (DewpointTDBOpSchemeType) ! dewpoint temp based controls
ReferenceNodeNum = PlantLoop(LoopNum)%OpScheme(CurSchemePtr)%ReferenceNodeNumber
NodeTemperature = Node(ReferenceNodeNum)%Temp
FindRangeVariable = NodeTemperature - OutDewPointTemp
END SELECT OperationScheme
!Objexx:Return Check/enforce that one of these CASEs holds or add a default case to assure return value is set
RETURN
END FUNCTION FindRangeVariable