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 GetSysAvailManagerListInputs
! SUBROUTINE INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN August 2007
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This routine gets the System Availability Manager List object input and stores
! it for later retrieval of items from the Plant and Air Loops.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor
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:
CHARACTER(len=MaxNameLength+40),ALLOCATABLE, DIMENSION(:) :: cAlphaFieldNames
CHARACTER(len=MaxNameLength+40),ALLOCATABLE, DIMENSION(:) :: cNumericFieldNames
LOGICAL, ALLOCATABLE, DIMENSION(:) :: lNumericFieldBlanks
LOGICAL, ALLOCATABLE, DIMENSION(:) :: lAlphaFieldBlanks
CHARACTER(len=MaxNameLength),ALLOCATABLE, DIMENSION(:) :: cAlphaArgs
REAL(r64),ALLOCATABLE, DIMENSION(:) :: rNumericArgs
CHARACTER(len=MaxNameLength) :: cCurrentModuleObject
integer :: NumAlphas
integer :: NumNumbers
integer :: numArgs
integer :: Item
integer :: IOstatus
logical :: IsNotOK
logical :: IsBlank
logical :: ErrorsFound
integer :: list
integer :: itemnum
IF (GetAvailMgrInputFlag) THEN
CALL GetSysAvailManagerInputs
GetAvailMgrInputFlag=.FALSE.
ENDIF
ErrorsFound=.FALSE.
cCurrentModuleObject ='AvailabilityManagerAssignmentList'
CALL GetObjectDefMaxArgs(cCurrentModuleObject,numArgs,NumAlphas,NumNumbers)
ALLOCATE(cAlphaFieldNames(NumAlphas))
cAlphaFieldNames=' '
ALLOCATE(cAlphaArgs(NumAlphas))
cAlphaArgs=' '
ALLOCATE(lAlphaFieldBlanks(NumAlphas))
lAlphaFieldBlanks=.false.
ALLOCATE(cNumericFieldNames(NumNumbers))
cNumericFieldNames=' '
ALLOCATE(rNumericArgs(NumNumbers))
rNumericArgs=0.0d0
ALLOCATE(lNumericFieldBlanks(NumNumbers))
lNumericFieldBlanks=.false.
cCurrentModuleObject ='AvailabilityManagerAssignmentList'
NumAvailManagerLists = GetNumObjectsFound(cCurrentModuleObject)
IF (NumAvailManagerLists > 0) THEN
ALLOCATE(SysAvailMgrListData(NumAvailManagerLists))
DO Item=1,NumAvailManagerLists
CALL GetObjectItem(cCurrentModuleObject,Item,cAlphaArgs,NumAlphas,rNumericArgs,NumNumbers,IOStatus, &
AlphaBlank=lAlphaFieldBlanks,NumBlank=lNumericFieldBlanks, &
AlphaFieldnames=cAlphaFieldNames,NumericFieldNames=cNumericFieldNames)
IsNotOK=.FALSE.
IsBlank=.FALSE.
CALL VerifyName(cAlphaArgs(1),SysAvailMgrListData%Name,Item-1,IsNotOK,IsBlank,&
TRIM(cCurrentModuleObject)//' Name')
IF (IsNotOK) THEN
ErrorsFound = .TRUE.
IF (IsBlank) cAlphaArgs(1)='xxxxx'
ENDIF
SysAvailMgrListData(Item)%Name=cAlphaArgs(1)
SysAvailMgrListData(Item)%NumItems = (NumAlphas-1)/2 ! Subtract off the list name first
ALLOCATE(SysAvailMgrListData(Item)%AvailManagerName(SysAvailMgrListData(Item)%NumItems))
SysAvailMgrListData(Item)%AvailManagerName=' '
ALLOCATE(SysAvailMgrListData(Item)%cAvailManagerType(SysAvailMgrListData(Item)%NumItems))
SysAvailMgrListData(Item)%cAvailManagerType=' '
ALLOCATE(SysAvailMgrListData(Item)%AvailManagerType(SysAvailMgrListData(Item)%NumItems))
SysAvailMgrListData(Item)%AvailManagerType=0
! retrieve data
itemnum=1
DO list=1,SysAvailMgrListData(Item)%NumItems
itemnum=itemnum+1
SysAvailMgrListData(Item)%cAvailManagerType(list)= cAlphaArgs(itemnum)
SysAvailMgrListData(Item)%AvailManagerType(list) = ValidateAndSetSysAvailabilityManagerType(cAlphaArgs(itemnum))
! these are validated individually in the GetPlant, GetSystem and GetZoneEq lists
itemnum=itemnum+1
SysAvailMgrListData(Item)%AvailManagerName(list) = cAlphaArgs(itemnum)
ENDDO ! End of retrieving items
ENDDO
ENDIF
DEALLOCATE(cAlphaFieldNames)
DEALLOCATE(cAlphaArgs)
DEALLOCATE(lAlphaFieldBlanks)
DEALLOCATE(cNumericFieldNames)
DEALLOCATE(rNumericArgs)
DEALLOCATE(lNumericFieldBlanks)
IF (ErrorsFound) THEN
CALL ShowFatalError('GetSysAvailManagerListInputs: Program terminates due to preceding conditions.')
ENDIF
RETURN
END SUBROUTINE GetSysAvailManagerListInputs