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.
SUBROUTINE SetupPollutionCalculations
! SUBROUTINE INFORMATION:
! AUTHOR Richard Liesen
! DATE WRITTEN August 2002
! MODIFIED na
! RE-ENGINEERED December 2003 RJL; August 2008 LKL - more standard getinput
! PURPOSE OF THIS SUBROUTINE:
! This subroutine is the input routines and Get routines
! METHODOLOGY EMPLOYED:
! Uses the status flags to trigger events.
! REFERENCES:
! na
! USE STATEMENTS:
USE DataIPShortCuts
USE InputProcessor, ONLY: GetNumObjectsFound,GetObjectItem,MakeUPPERCase
USE DataInterfaces, ONLY: ShowWarningError,ShowSevereError,ShowFatalError
USE ScheduleManager, ONLY: GetScheduleIndex
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 :: NumPolluteRpt
INTEGER :: NumAlphas
INTEGER :: NumNums
INTEGER :: Loop
INTEGER :: IOSTAT
!First determine if the Pollution reporting has been triggered, and is not exit.
cCurrentModuleObject='Output:EnvironmentalImpactFactors'
NumPolluteRpt = GetNumObjectsFound(cCurrentModuleObject)
PollutionReportSetup = .true.
Do Loop = 1,NumPolluteRpt
CALL GetObjectItem(cCurrentModuleObject,Loop,cAlphaArgs,NumAlphas,rNumericArgs,NumNums,IOSTAT, &
AlphaBlank=lAlphaFieldBlanks,NumBlank=lNumericFieldBlanks, &
AlphaFieldnames=cAlphaFieldNames,NumericFieldNames=cNumericFieldNames)
!Call this routine in the Output Processor to setup the correct Facility energy meters that are
! necessary to make sure that the Meter file is opened and written to by the OP so that time stamps
! and the like are happening as expected.
If(.not. lAlphaFieldBlanks(1)) Then
CALL InitPollutionMeterReporting(cAlphaArgs(1))
Else
CALL InitPollutionMeterReporting('RunPeriod')
End If
End Do
RETURN
END SUBROUTINE SetupPollutionCalculations