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) | :: | KeyedValue | |||
character(len=*), | intent(in) | :: | VariableName | |||
integer, | intent(in) | :: | MinIndx | |||
integer, | intent(in) | :: | MaxIndx |
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 BuildKeyVarList(KeyedValue,VariableName,MinIndx,MaxIndx)
! SUBROUTINE INFORMATION:
! AUTHOR Linda K. Lawrie
! DATE WRITTEN March 1999
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine builds an initial list (from ReqRepVars) of
! pointers to that data structure for this KeyedValue and VariableName.
! METHODOLOGY EMPLOYED:
! Go through the ReqRepVars list and add those
! that match (and dont duplicate ones already in the list).
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: SameString
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: VariableName ! String Name of variable
CHARACTER(len=*), INTENT(IN) :: KeyedValue ! Associated Key for this variable
INTEGER, INTENT(IN) :: MinIndx ! Min number (from previous routine) for this variable
INTEGER, INTENT(IN) :: MaxIndx ! Max number (from previous routine) for this variable
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER Loop
INTEGER Loop1
LOGICAL Dup
INTEGER, DIMENSION(:), ALLOCATABLE :: TmpReportList
DO Loop=MinIndx,MaxIndx
IF (.not. SameString(ReqRepVars(Loop)%VarName,VariableName)) CYCLE
IF (.not. SameString(ReqRepVars(Loop)%Key,KeyedValue)) CYCLE
! A match. Make sure doesnt duplicate
ReqRepVars(Loop)%Used=.true.
Dup=.false.
DO Loop1=1,NumExtraVars
IF (ReqRepVars(ReportList(Loop1))%ReportFreq == ReqRepVars(Loop)%ReportFreq) THEN
Dup=.true.
ELSE
CYCLE
ENDIF
! So Same Report Frequency
IF (ReqRepVars(ReportList(Loop1))%SchedPtr /= ReqRepVars(Loop)%SchedPtr) Dup=.false.
ENDDO
IF (.not. Dup) THEN
NumExtraVars=NumExtraVars+1
IF (NumExtraVars == NumReportList) THEN
ALLOCATE(TmpReportList(NumReportList))
TmpReportList=0
TmpReportList(1:NumReportList)=ReportList
DEALLOCATE(ReportList)
NumReportList=NumReportList+100
ALLOCATE(ReportList(NumReportList))
ReportList=TmpReportList
DEALLOCATE(TmpReportList)
ENDIF
ReportList(NumExtraVars)=Loop
ENDIF
ENDDO
RETURN
END SUBROUTINE BuildKeyVarList