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 | ||
---|---|---|---|---|---|---|
logical, | intent(inout) | :: | ErrorsFound |
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 GetWaterMainsTemperatures(ErrorsFound)
! SUBROUTINE INFORMATION:
! AUTHOR Peter Graham Ellis
! DATE WRITTEN January 2005
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Reads the input data for the WATER MAINS TEMPERATURES object.
! METHODOLOGY EMPLOYED:
! na
! USE STATEMENTS:
USE DataIPShortCuts
USE InputProcessor, ONLY: GetNumObjectsFound, GetObjectItem, SameString
USE ScheduleManager, ONLY: GetScheduleIndex
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
LOGICAL, INTENT(INOUT) :: ErrorsFound
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: NumObjects
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
CHARACTER(len=MaxNameLength),DIMENSION(2) :: AlphArray ! Character string data
REAL(r64), DIMENSION(2) :: NumArray ! Numeric data
! FLOW:
cCurrentModuleObject='Site:WaterMainsTemperature'
NumObjects = GetNumObjectsFound(cCurrentModuleObject)
IF (NumObjects == 1) THEN
CALL GetObjectItem(cCurrentModuleObject,1,AlphArray,NumAlphas,NumArray,NumNums,IOStat, &
AlphaBlank=lAlphaFieldBlanks,NumBlank=lNumericFieldBlanks, &
AlphaFieldnames=cAlphaFieldNames,NumericFieldNames=cNumericFieldNames)
IF (SameString(AlphArray(1),'Schedule')) THEN
WaterMainsTempsMethod = ScheduleMethod
WaterMainsTempsSchedule = GetScheduleIndex(AlphArray(2))
IF (WaterMainsTempsSchedule .EQ. 0) THEN
CALL ShowSevereError(TRIM(cCurrentModuleObject)//': invalid '//TRIM(cAlphaFieldNames(2))// &
'='//TRIM(AlphArray(2)))
ErrorsFound = .TRUE.
END IF
ELSE IF (SameString(AlphArray(1),'Correlation')) THEN
WaterMainsTempsMethod = CorrelationMethod
IF (NumNums == 0) THEN
CALL ShowSevereError(TRIM(cCurrentModuleObject)//': Missing Annual Average and Maximum Difference fields.')
ErrorsFound = .TRUE.
ELSE IF (NumNums == 1) THEN
CALL ShowSevereError(TRIM(cCurrentModuleObject)//': Missing Maximum Difference field.')
ErrorsFound = .TRUE.
ELSE
WaterMainsTempsAnnualAvgAirTemp = NumArray(1)
WaterMainsTempsMaxDiffAirTemp = NumArray(2)
END IF
ELSE
CALL ShowSevereError(TRIM(cCurrentModuleObject)//': invalid '//TRIM(cAlphaFieldNames(1))// &
'='//TRIM(AlphArray(1)))
ErrorsFound = .TRUE.
END IF
ELSE IF (NumObjects > 1) THEN
CALL ShowSevereError(TRIM(cCurrentModuleObject)//': Too many objects entered. Only one allowed.')
ErrorsFound = .TRUE.
END IF
RETURN
END SUBROUTINE GetWaterMainsTemperatures