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) | :: | VariableTypeKey |
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 ValidateVariableType(VariableTypeKey)
! FUNCTION INFORMATION:
! AUTHOR Linda K. Lawrie
! DATE WRITTEN December 1998
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! This function validates the VariableTypeKey passed to the SetupVariable
! routine and assigns it the value used in the OutputProcessor.
! METHODOLOGY EMPLOYED:
! Look it up in a list of valid variable 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) :: VariableTypeKey
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
CHARACTER(len=8), DIMENSION(3) :: StateVariables
CHARACTER(len=9), DIMENSION(4) :: NonStateVariables
LOGICAL,SAVE :: Initialized =.false.
INTEGER Item
IF (.not. Initialized) THEN
StateVariables(1)='STATE'
StateVariables(2)='AVERAGE'
StateVariables(3)='AVERAGED'
NonStateVariables(1)='NON STATE'
NonStateVariables(2)='NONSTATE'
NonStateVariables(3)='SUM'
NonStateVariables(4)='SUMMED'
ENDIF
ValidateVariableType=1
Item=FindIteminList(MakeUPPERCase(VariableTypeKey),StateVariables,3)
IF (Item /= 0) RETURN
ValidateVariableType=2
Item=FindIteminList(MakeUPPERCase(VariableTypeKey),NonStateVariables,4)
IF (Item /= 0) RETURN
CALL ShowSevereError('Invalid variable type requested='//VariableTypeKey)
ValidateVariableType=0
RETURN
END FUNCTION ValidateVariableType