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.
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 ReportParentChildren
! SUBROUTINE INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN May 2005
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Reports parent compsets with ensuing children data.
! METHODOLOGY EMPLOYED:
! Uses IsParentObject,GetNumChildren,GetChildrenData
! REFERENCES:
! na
! USE STATEMENTS:
! na
USE DataGlobals, ONLY: OutputFileDebug
USE General, ONLY: TrimSigDigits
USE DataBranchNodeConnections
USE BranchNodeConnections
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*), PARAMETER :: Blank=' '
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER Loop
INTEGER Loop1
CHARACTER(len=MaxNameLength), ALLOCATABLE, DIMENSION(:) :: ChildCType
CHARACTER(len=MaxNameLength), ALLOCATABLE, DIMENSION(:) :: ChildCName
CHARACTER(len=MaxNameLength), ALLOCATABLE, DIMENSION(:) :: ChildInNodeName
CHARACTER(len=MaxNameLength), ALLOCATABLE, DIMENSION(:) :: ChildOutNodeName
INTEGER, ALLOCATABLE, DIMENSION(:) :: ChildInNodeNum
INTEGER, ALLOCATABLE, DIMENSION(:) :: ChildOutNodeNum
INTEGER NumChildren
LOGICAL ErrorsFound
ErrorsFound=.false.
WRITE(OutputFileDebug,'(A)') 'Node Type,CompSet Name,Inlet Node,OutletNode'
DO Loop=1,NumOfActualParents
NumChildren=GetNumChildren(ParentNodeList(Loop)%CType,ParentNodeList(Loop)%CName)
IF (NumChildren > 0) THEN
ALLOCATE(ChildCType(NumChildren))
ALLOCATE(ChildCName(NumChildren))
ALLOCATE(ChildInNodeName(NumChildren))
ALLOCATE(ChildOutNodeName(NumChildren))
ALLOCATE(ChildInNodeNum(NumChildren))
ALLOCATE(ChildOutNodeNum(NumChildren))
ChildCType=Blank
ChildCName=Blank
ChildInNodeName=Blank
ChildOutNodeName=Blank
ChildInNodeNum=0
ChildOutNodeNum=0
CALL GetChildrenData(ParentNodeList(Loop)%CType,ParentNodeList(Loop)%CName,NumChildren, &
ChildCType,ChildCName,ChildInNodeName,ChildInNodeNum,ChildOutNodeName,ChildOutNodeNum, &
ErrorsFound)
if (Loop > 1) WRITE(outputfiledebug,'(1X,60("="))')
WRITE(outputfiledebug,'(A)') ' Parent Node,'//TRIM(ParentNodeList(Loop)%CType)//':'// &
TRIM(ParentNodeList(Loop)%CName)//','// &
TRIM(ParentNodeList(Loop)%InletNodeName)//','//TRIM(ParentNodeList(Loop)%OutletNodeName)
DO Loop1=1,NumChildren
WRITE(outputfiledebug,'(A)') '..ChildNode,'//TRIM(ChildCType(Loop1))//':'//TRIM(ChildCName(Loop1))//','// &
TRIM(ChildInNodeName(Loop1))//','//TRIM(ChildOutNodeName(Loop1))
ENDDO
DEALLOCATE(ChildCType)
DEALLOCATE(ChildCName)
DEALLOCATE(ChildInNodeName)
DEALLOCATE(ChildOutNodeName)
DEALLOCATE(ChildInNodeNum)
DEALLOCATE(ChildOutNodeNum)
ELSE
if (Loop > 1) WRITE(outputfiledebug,'(1X,60("="))')
WRITE(outputfiledebug,'(A)') ' Parent Node (no children),'//TRIM(ParentNodeList(Loop)%CType)//':'// &
TRIM(ParentNodeList(Loop)%CName)//','// &
TRIM(ParentNodeList(Loop)%InletNodeName)//','//TRIM(ParentNodeList(Loop)%OutletNodeName)
ENDIF
ENDDO
RETURN
END SUBROUTINE ReportParentChildren