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) | :: | VentCavIndex |
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 GetExtVentedCavityIndex(SurfacePtr, VentCavIndex)
! SUBROUTINE INFORMATION:
! AUTHOR B. Griffith
! DATE WRITTEN January 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 ExtVentedCavity derived type that has the surface.
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor , ONLY: FindItemInList
USE DataSurfaces , ONLY: Surface, TotSurfaces, ExtVentedCavity, TotExtVentCav
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER , INTENT(IN) :: SurfacePtr
INTEGER , INTENT(OUT) :: VentCavIndex
! SUBROUTINE PARAMETER DEFINITIONS:
! INTERFACE BLOCK SPECIFICATIONS:
! DERIVED TYPE DEFINITIONS:
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: CavNum ! temporary
INTEGER :: thisSurf ! temporary
INTEGER :: thisCav
Logical :: Found
IF (SurfacePtr == 0) THEN
! should be trapped already
CALL ShowFatalError('Invalid surface passed to GetExtVentedCavityIndex' )
ENDIF
CavNum = 0
Found = .false.
Do thisCav=1, TotExtVentCav
Do thisSurf =1, ExtVentedCavity(thisCav)%NumSurfs
IF (SurfacePtr == ExtVentedCavity(thisCav)%SurfPtrs(thisSurf)) then
Found = .TRUE.
CavNum = thisCav
ENDIF
ENDDO
ENDDO
IF (.NOT. Found) THEN
CALL ShowFatalError('Did not find surface in Exterior Vented Cavity description in GetExtVentedCavityIndex, '// &
'Surface name = ' //TRIM(Surface(SurfacePtr)%Name))
ELSE
VentCavIndex = CavNum
ENDIF
RETURN
END SUBROUTINE GetExtVentedCavityIndex