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) | :: | PipeType | |||
character(len=*), | intent(in) | :: | PipeName | |||
integer, | intent(inout) | :: | PipeNum |
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 InitializeHeatTransferPipes(PipeType,PipeName,PipeNum)
! SUBROUTINE INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN October 2007
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Provide an external call to initialize Pipes/index numbers.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: FindItemInList
USE General, ONLY: TrimSigDigits
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: PipeType ! Type of Pipe
CHARACTER(len=*), INTENT(IN) :: PipeName ! Name of Pipe
INTEGER, INTENT(INOUT) :: PipeNum ! Index into pipe structure for name
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
! na
IF (GetPipeInputFlag) THEN
CALL GetPipesHeatTransfer
GetPipeInputFlag=.FALSE.
ENDIF
IF (PipeNum == 0) THEN
PipeNum=FindItemInList(PipeName,PipeHT%Name,NumOfPipeHT)
IF (PipeNum == 0) THEN
CALL ShowFatalError('SimPipes: Pipe requested not found ='//TRIM(PipeName)) ! Catch any bad names before crashing
ENDIF
ELSE
IF (PipeNum > NumOfPipeHT .or. PipeNum < 1) THEN
CALL ShowFatalError('InitializePipe: Invalid PipeNum passed='//TRIM(TrimSigDigits(PipeNum))// &
', Number of Pipes='//TRIM(TrimSigDigits(NumOfPipeHT))//', Pipe name='//TRIM(PipeName))
ENDIF
IF (PipeName /= PipeHT(PipeNum)%Name) THEN
CALL ShowFatalError('InitializePipe: Invalid PipeNum passed='//TRIM(TrimSigDigits(PipeNum))// &
', Pipe name='//TRIM(PipeName)//', stored Pipe Name for that index='//TRIM(PipeHT(PipeNum)%Name))
ENDIF
ENDIF
RETURN
END SUBROUTINE InitializeHeatTransferPipes