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 GetSiteAtmosphereData(ErrorsFound)
! SUBROUTINE INFORMATION:
! AUTHOR Peter Graham Ellis
! DATE WRITTEN January 2006
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Reads the input data for the SITE ATMOSPHERIC VARIATION object.
! METHODOLOGY EMPLOYED:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: GetNumObjectsFound, GetObjectItem
USE General, ONLY: RoundSigDigits
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(1) :: AlphArray ! Character string data
REAL(r64), DIMENSION(3) :: NumArray ! Numeric data
! FLOW:
CurrentModuleObject='Site:HeightVariation'
NumObjects = GetNumObjectsFound(CurrentModuleObject)
IF (NumObjects == 1) THEN
CALL GetObjectItem(CurrentModuleObject,1,AlphArray,NumAlphas,NumArray,NumNums,IOStat, &
AlphaBlank=lAlphaFieldBlanks,NumBlank=lNumericFieldBlanks, &
AlphaFieldnames=cAlphaFieldNames,NumericFieldNames=cNumericFieldNames)
IF (NumNums > 0) SiteWindExp = NumArray(1)
IF (NumNums > 1) SiteWindBLHeight = NumArray(2)
IF (NumNums > 2) SiteTempGradient = NumArray(3)
ELSE IF (NumObjects > 1) THEN
CALL ShowSevereError('Too many '//TRIM(CurrentModuleObject)//' objects, only 1 allowed.')
ErrorsFound = .TRUE.
ELSE ! None entered
! IDD defaults would have this:
! Building object defaults use Terrain to set SiteWindExp and SiteWindBLHeight but would
! be overridden by a Site Atmospheric Variation Object.
!SiteWindExp = 0.22
!SiteWindBLHeight = 370.0
SiteTempGradient = 0.0065d0
END IF
! Write to the initialization output file
WRITE(OutputFileInits,'(A)') '! <Environment:Site Atmospheric Variation>,Wind Speed Profile Exponent {},'// &
'Wind Speed Profile Boundary Layer Thickness {m},Air Temperature Gradient Coefficient {K/m}'
WRITE(OutputFileInits,720) TRIM(RoundSigDigits(SiteWindExp,3)), TRIM(RoundSigDigits(SiteWindBLHeight,3)), &
TRIM(RoundSigDigits(SiteTempGradient,6))
720 FORMAT('Environment:Site Atmospheric Variation',3(',',A))
RETURN
END SUBROUTINE GetSiteAtmosphereData