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) | :: | SurfacePtr | |||
integer, | intent(out) | :: | UTSCIndex |
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 GetTranspiredCollectorIndex(SurfacePtr, UTSCIndex)
! SUBROUTINE INFORMATION:
! AUTHOR B. Griffith
! DATE WRITTEN November 2004
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! object oriented "Get" routine for establishing correct integer index from outside this module
! METHODOLOGY EMPLOYED:
! mine Surface derived type for correct index/number of surface
! mine UTSC derived type that has the surface.
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor , ONLY: FindItemInList
USE DataSurfaces , ONLY: Surface
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER , INTENT(IN) :: SurfacePtr
INTEGER , INTENT(OUT) :: UTSCIndex
! SUBROUTINE PARAMETER DEFINITIONS:
! INTERFACE BLOCK SPECIFICATIONS:
! DERIVED TYPE DEFINITIONS:
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: UTSCNum ! temporary
INTEGER :: thisSurf ! temporary
INTEGER :: thisUTSC
Logical :: Found
IF (GetInputFlag) THEN
CALL GetTranspiredCollectorInput
GetInputFlag=.false.
ENDIF
IF (SurfacePtr == 0) THEN
CALL ShowFatalError('Invalid surface passed to GetTranspiredCollectorIndex, Surface name = ' &
//TRIM(Surface(SurfacePtr)%Name))
ENDIF
UTSCNum = 0
Found = .false.
Do thisUTSC=1, NumUTSC
Do thisSurf =1, UTSC(thisUTSC)%NumSurfs
IF (SurfacePtr == UTSC(thisUTSC)%SurfPtrs(thisSurf)) then
Found = .TRUE.
UTSCNum = thisUTSC
ENDIF
ENDDO
ENDDO
IF (.NOT. Found) THEN
CALL ShowFatalError('Did not find surface in UTSC description in GetTranspiredCollectorIndex, Surface name = ' &
//TRIM(Surface(SurfacePtr)%Name))
ELSE
UTSCIndex=UTSCNum
ENDIF
RETURN
END SUBROUTINE GetTranspiredCollectorIndex