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 | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | NodeNumber | |||
integer, | ALLOCATABLE, DIMENSION(:) | :: | NodeConnectType | |||
logical, | intent(inout) | :: | ErrFlag |
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 GetNodeConnectionType(NodeNumber, NodeConnectType, ErrFlag)
! FUNCTION INFORMATION:
! AUTHOR Lixing Gu
! DATE WRITTEN Jan 2007
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! This function provides a connection type with given node number
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: FindItemInList
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: NodeNumber
LOGICAL, INTENT(INOUT) :: ErrFlag
INTEGER, ALLOCATABLE, DIMENSION(:) :: NodeConnectType
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
INTEGER :: NodeConnectIndex, NumInList
INTEGER, ALLOCATABLE, DIMENSION(:) :: ListArray
IF (ALLOCATED(NodeConnectType)) DEALLOCATE(NodeConnectType)
CALL FindAllNumbersInList(NodeNumber,NodeConnections%NodeNumber,NumOfNodeConnections, NumInList, ListArray)
ALLOCATE(NodeConnectType(NumInList))
IF(NumInList .GT. 0)THEN
DO NodeConnectIndex = 1, NumInList
NodeConnectType(NodeConnectIndex) = &
FindItemInList(NodeConnections(ListArray(NodeConnectIndex))%ConnectionType,ValidConnectionTypes,NumValidConnectionTypes)
END DO
ELSE
IF(NodeNumber .GT. 0)THEN
CALL ShowWarningError('Node not found = '//TRIM(NodeID(NodeNumber))//'.')
ELSE
CALL ShowWarningError('Invalid node number passed = 0.')
END IF
ErrFlag = .TRUE.
END IF
RETURN
END SUBROUTINE GetNodeConnectionType