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 ReadUserWeatherInput
! SUBROUTINE INFORMATION:
! AUTHOR Richard Liesen
! DATE WRITTEN September 1997
! MODIFIED
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine is the main driver of the weather manager module.
! It controls the assignment of weather related global variables as
! well as the reads and writes for retrieving weather information.
! METHODOLOGY EMPLOYED:
!
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: GetNumObjectsFound, GetObjectItem
USE DataSystemVariables
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 :: Env ! Environment Loop Counter
LOGICAL :: ErrorsFound=.false.
Integer :: RPD1
Integer :: RPD2
Integer :: RP ! number of run periods
Integer :: RPAW ! number of run periods, actual weather
! FLOW:
!Get the number of design days and annual runs from user inpout
TotDesDays=GetNumObjectsFound('SizingPeriod:DesignDay')
RPD1=GetNumObjectsFound('SizingPeriod:WeatherFileDays')
RPD2=GetNumObjectsFound('SizingPeriod:WeatherFileConditionType')
RP=GetNumObjectsFound('RunPeriod')
RPAW=GetNumObjectsFound('RunPeriod:CustomRange')
TotRunPers=RP+RPAW
NumOfEnvrn=TotDesDays+TotRunPers+RPD1+RPD2
IF (TotRunPers > 0) THEN
WeathSimReq=.true.
ELSE
WeathSimReq=.false.
ENDIF
ALLOCATE(SPSiteScheduleNamePtr(TotDesDays*5))
ALLOCATE(SPSiteScheduleUnits(TotDesDays*5))
SPSiteScheduleNamePtr=0
SPSiteScheduleUnits=Blank
!Allocate the Design Day and Environment array to the # of DD's or/and
! Annual runs on input file
ALLOCATE (DesignDay(TotDesDays))
ALLOCATE (Environment(NumOfEnvrn))
! Set all Environments to False and then the weather environment will be set
! in the get annual run data subroutine
Do Env = 1, TotDesDays
Environment(Env)%KindOfEnvrn = ksDesignDay
End Do
Do Env = 1, RPD1+RPD2
IF (.not. DDOnly) THEN
Environment(TotDesDays+Env)%KindOfEnvrn = ksRunPeriodDesign
ELSE
Environment(TotDesDays+Env)%KindOfEnvrn = ksRunPeriodWeather
ENDIF
End Do
Do Env = 1, TotRunPers
Environment(TotDesDays+RPD1+RPD2+Env)%KindOfEnvrn = ksRunPeriodWeather
End Do
IF (TotDesDays >= 1) THEN
CALL GetDesignDayData(TotDesDays,ErrorsFound)
ENDIF
IF (RPD1 >=1 .or. RPD2 >= 1) THEN
CALL GetRunPeriodDesignData(ErrorsFound)
ENDIF
!the last environment(s) is designated the weather environment if an annual run
! is selected. All of the design systems is done from the design day info
! which will have to be completed to run the annual run.
IF (TotRunPers >= 1 .or. FullAnnualRun) THEN
CALL GetRunPeriodData(TotRunPers,ErrorsFound)
ENDIF
IF (RPD1 >=1 .or. RPD2 >= 1 .or. TotRunPers >= 1 .or. FullAnnualRun) THEN
CALL GetSpecialDayPeriodData(ErrorsFound)
CALL GetDSTData(ErrorsFound)
IF (IDFDaylightSaving) THEN
DST=IDFDST
ENDIF
ENDIF
CALL GetLocationInfo(ErrorsFound)
CALL GetGroundTemps(ErrorsFound)
CALL GetGroundReflectances(ErrorsFound)
CALL GetSnowGroundRefModifiers(ErrorsFound)
CALL GetWaterMainsTemperatures(ErrorsFound)
CALL GetWeatherStation(ErrorsFound)
CALL SetupEnvironmentTypes
CALL GetWeatherProperties(ErrorsFound)
! Deallocate ones used for schedule pointers
DEALLOCATE(SPSiteScheduleNamePtr)
DEALLOCATE(SPSiteScheduleUnits)
IF (ErrorsFound) THEN
CALL ShowFatalError('GetWeatherInput: Above errors cause termination')
ENDIF
RETURN
END SUBROUTINE ReadUserWeatherInput