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) | :: | 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 AddBlankKeys(VariableName,MinIndx,MaxIndx)
! SUBROUTINE INFORMATION:
! AUTHOR Linda K. Lawrie
! DATE WRITTEN March 1999
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine adds to the ReportList any report variables that have
! been requested for all keys of that report variable (if it doesnt duplicate
! a frequency already on the list).
! 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
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 (ReqRepVars(Loop)%Key /= BlankString) CYCLE
IF (.not. SameString(ReqRepVars(Loop)%VarName,VariableName)) CYCLE
! A match. Make sure doesnt duplicate
Dup=.false.
DO Loop1=1,NumExtraVars
!IF (ReqRepVars(ReportList(Loop1))%ReportFreq == ReqRepVars(Loop)%ReportFreq) Dup=.true.
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 AddBlankKeys