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.
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 GetPipeInput
! SUBROUTINE INFORMATION:
! AUTHOR: Dan Fisher
! DATE WRITTEN: April 1998
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine needs a description.
! METHODOLOGY EMPLOYED:
! Needs description, as appropriate.
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: GetNumObjectsFound, GetObjectItem, VerifyName
USE DataIPShortCuts
USE NodeInputManager, ONLY: GetOnlySingleNode
USE BranchNodeConnections, ONLY: TestCompSet
!USE DataPlant, ONLY: LoopData
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
! na
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: PipeNum
INTEGER :: NumWaterPipes
INTEGER :: NumSteamPipes
INTEGER :: PipeSteamNum
INTEGER :: PipeWaterNum
INTEGER :: NumAlphas ! Number of elements in the alpha array
INTEGER :: NumNums ! Number of elements in the numeric array
INTEGER :: IOStat ! IO Status when calling get input subroutine
LOGICAL :: ErrorsFound=.false.
LOGICAL :: IsNotOK ! Flag to verify name
LOGICAL :: IsBlank ! Flag for blank name
!GET NUMBER OF ALL EQUIPMENT TYPES
NumWaterPipes = GetNumObjectsFound('Pipe:Adiabatic')
NumSteamPipes = GetNumObjectsFound('Pipe:Adiabatic:Steam')
NumLocalPipes = NumWaterPipes + NumSteamPipes
ALLOCATE(LocalPipe(NumLocalPipes))
cCurrentModuleObject = 'Pipe:Adiabatic'
DO PipeWaterNum = 1 , NumWaterPipes
PipeNum=PipeWaterNum
CALL GetObjectItem(cCurrentModuleObject,PipeWaterNum,cAlphaArgs,NumAlphas, &
rNumericArgs,NumNums,IOSTAT)
IsNotOK=.false.
IsBlank=.false.
CALL VerifyName(cAlphaArgs(1),LocalPipe%Name,PipeNum-1,IsNotOK,IsBlank,TRIM(cCurrentModuleObject)//' Name')
IF (IsNotOK) THEN
ErrorsFound=.true.
IF (IsBlank) cAlphaArgs(1)='xxxxx'
ENDIF
LocalPipe(PipeNum)%Name = cAlphaArgs(1)
LocalPipe(PipeNum)%TypeOf = TypeOf_Pipe
LocalPipe(PipeNum)%InletNodeNum = &
GetOnlySingleNode(cAlphaArgs(2),ErrorsFound,TRIM(cCurrentModuleObject),cAlphaArgs(1), &
NodeType_Water,NodeConnectionType_Inlet, 1, ObjectIsNotParent)
LocalPipe(PipeNum)%OutletNodeNum = &
GetOnlySingleNode(cAlphaArgs(3),ErrorsFound,TRIM(cCurrentModuleObject),cAlphaArgs(1), &
NodeType_Water,NodeConnectionType_Outlet, 1, ObjectIsNotParent)
CALL TestCompSet(TRIM(cCurrentModuleObject),cAlphaArgs(1),cAlphaArgs(2),cAlphaArgs(3),'Pipe Nodes')
END DO
PipeNum=NumWaterPipes
cCurrentModuleObject = 'Pipe:Adiabatic:Steam'
DO PipeSteamNum = 1 , NumSteamPipes
PipeNum=PipeNum+1
CALL GetObjectItem(cCurrentModuleObject,PipeSteamNum,cAlphaArgs,NumAlphas, &
rNumericArgs,NumNums,IOSTAT)
IsNotOK=.false.
IsBlank=.false.
CALL VerifyName(cAlphaArgs(1),LocalPipe%Name,PipeNum-1,IsNotOK,IsBlank,TRIM(cCurrentModuleObject)//' Name')
IF (IsNotOK) THEN
ErrorsFound=.true.
IF (IsBlank) cAlphaArgs(1)='xxxxx'
ENDIF
LocalPipe(PipeNum)%Name = cAlphaArgs(1)
LocalPipe(PipeNum)%TypeOf = TypeOf_PipeSteam
LocalPipe(PipeNum)%InletNodeNum = &
GetOnlySingleNode(cAlphaArgs(2),ErrorsFound,TRIM(cCurrentModuleObject),cAlphaArgs(1), &
NodeType_Steam,NodeConnectionType_Inlet, 1, ObjectIsNotParent)
LocalPipe(PipeNum)%OutletNodeNum = &
GetOnlySingleNode(cAlphaArgs(3),ErrorsFound,TRIM(cCurrentModuleObject),cAlphaArgs(1), &
NodeType_Steam,NodeConnectionType_Outlet, 1, ObjectIsNotParent)
CALL TestCompSet(TRIM(cCurrentModuleObject),cAlphaArgs(1),cAlphaArgs(2),cAlphaArgs(3),'Pipe Nodes')
END DO
IF (ErrorsFound) THEN
CALL ShowFatalError('GetPipeInput: Errors getting input for pipes')
ENDIF
RETURN
END SUBROUTINE GetPipeInput