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 | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | IndexTypeKey | |||
character(len=*), | intent(in) | :: | CalledFrom |
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.
INTEGER FUNCTION ValidateIndexType(IndexTypeKey,CalledFrom)
! FUNCTION INFORMATION:
! AUTHOR Linda K. Lawrie
! DATE WRITTEN December 1998
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! This function validates the requested "index" type and returns
! the proper value for use inside the OutputProcessor.
! METHODOLOGY EMPLOYED:
! Look it up in a list of valid index types.
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: FindIteminList, MakeUPPERCase
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: IndexTypeKey ! Index type (Zone, HVAC) for variables
CHARACTER(len=*), INTENT(IN) :: CalledFrom ! Routine called from (for error messages)
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
CHARACTER(len=12), SAVE, DIMENSION(3) :: ZoneIndexTypes
CHARACTER(len=12), SAVE, DIMENSION(3) :: SystemIndexTypes
LOGICAL,SAVE :: Initialized =.false.
INTEGER Item
IF (.not. Initialized) THEN
ZoneIndexTypes(1)='ZONE'
ZoneIndexTypes(2)='HEATBALANCE'
ZoneIndexTypes(3)='HEAT BALANCE'
SystemIndexTypes(1)='HVAC'
SystemIndexTypes(2)='SYSTEM'
SystemIndexTypes(3)='PLANT'
Initialized=.true.
ENDIF
ValidateIndexType=1
Item=FindIteminList(MakeUPPERCase(IndexTypeKey),ZoneIndexTypes,3)
IF (Item /= 0) RETURN
ValidateIndexType=2
Item=FindIteminList(MakeUPPERCase(IndexTypeKey),SystemIndexTypes,3)
IF (Item /= 0) RETURN
ValidateIndexType=0
! The following should never happen to a user!!!!
CALL ShowSevereError('OutputProcessor/ValidateIndexType: Invalid Index Key passed to ValidateIndexType=' &
//TRIM(IndexTypeKey))
CALL ShowContinueError('..Should be "ZONE", "SYSTEM", "HVAC"... was called from:'//TRIM(CalledFrom))
CALL ShowFatalError('Preceding condition causes termination.')
RETURN
END FUNCTION ValidateIndexType