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 | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | ResourceTypeChar |
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.
FUNCTION AssignResourceTypeNum(ResourceTypeChar) RESULT(ResourceTypeNum)
! FUNCTION INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN June 2005
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! Assists in assigning proper numeric resource types to data structures.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: MakeUPPERCase
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: ResourceTypeChar
INTEGER :: ResourceTypeNum
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
! na
ResourceTypeNum=0
SELECT CASE (MakeUPPERCase(ResourceTypeChar))
CASE ('ELECTRICITY', 'ELECTRIC')
ResourceTypeNum=iRT_Electricity
CASE ('GAS','NATURALGAS')
ResourceTypeNum=iRT_Gas
CASE ('GASOLINE')
ResourceTypeNum=iRT_Gasoline
CASE ('DIESEL')
ResourceTypeNum=iRT_Diesel
CASE ('COAL')
ResourceTypeNum=iRT_Coal
CASE ('FUELOIL#1','DISTILLATE OIL')
ResourceTypeNum=iRT_FuelOil_1
CASE ('FUELOIL#2','RESIDUAL OIL')
ResourceTypeNum=iRT_FuelOil_2
CASE ('PROPANE','LPG')
ResourceTypeNum=iRT_Propane
CASE ('OTHERFUEL1')
ResourceTypeNum=iRT_OtherFuel1
CASE ('OTHERFUEL2')
ResourceTypeNum=iRT_OtherFuel2
CASE ('WATER','H2O')
ResourceTypeNum=iRT_Water ! use record keeping
CASE ('ONSITEWATER', 'WATERPRODUCED', 'ONSITE WATER')
ResourceTypeNum=iRT_OnSiteWater ! these are for supply record keeping
CASE ('MAINSWATER', 'WATERSUPPLY')
ResourceTypeNum=iRT_MainsWater ! record keeping
CASE ('RAINWATER', 'PRECIPITATION')
ResourceTypeNum=iRT_RainWater ! record keeping
CASE ('WELLWATER', 'Groundwater')
ResourceTypeNum=iRT_WellWater ! record keeping
CASE ('CONDENSATE')
ResourceTypeNum= iRT_Condensate
CASE ('ENERGYTRANSFER')
ResourceTypeNum=iRT_EnergyTransfer
CASE ('STEAM')
ResourceTypeNum=iRT_Steam
CASE ('DISTRICTCOOLING')
ResourceTypeNum=iRT_DistrictCooling
CASE ('DISTRICTHEATING')
ResourceTypeNum=iRT_DistrictHeating
CASE ('ELECTRICITYPRODUCED')
ResourceTypeNum=iRT_ElectricityProduced
CASE ('ELECTRICITYPURCHASED')
ResourceTypeNum=iRT_ElectricityPurchased
CASE ('ELECTRICITYSURPLUSSOLD')
ResourceTypeNum=iRT_ElectricitySurplusSold
CASE ('ELECTRICITYNET')
ResourceTypeNum=iRT_ElectricityNet
CASE ('SOLARWATER')
ResourceTypeNum=iRT_SolarWater
CASE ('SOLARAIR')
ResourceTypeNum=iRT_SolarAir
CASE ('SO2')
ResourceTypeNum=iRT_SO2
CASE ('NOX')
ResourceTypeNum=iRT_NOx
CASE ('N2O')
ResourceTypeNum=iRT_N2O
CASE ('PM')
ResourceTypeNum=iRT_PM
CASE ('PM2.5')
ResourceTypeNum=iRT_PM2_5
CASE ('PM10')
ResourceTypeNum=iRT_PM10
CASE ('CO')
ResourceTypeNum=iRT_CO
CASE ('CO2')
ResourceTypeNum=iRT_CO2
CASE ('CH4')
ResourceTypeNum=iRT_CH4
CASE ('NH3')
ResourceTypeNum=iRT_NH3
CASE ('NMVOC')
ResourceTypeNum=iRT_NMVOC
CASE ('HG')
ResourceTypeNum=iRT_Hg
CASE ('PB')
ResourceTypeNum=iRT_Pb
CASE ('NUCLEAR HIGH')
ResourceTypeNum=iRT_NuclearHigh
CASE ('NUCLEAR LOW')
ResourceTypeNum=iRT_NuclearLow
CASE ('WATERENVIRONMENTALFACTORS')
ResourceTypeNum=iRT_WaterEnvironmentalFactors
CASE ('CARBON EQUIVALENT')
ResourceTypeNum=iRT_CarbonEquivalent
CASE ('SOURCE')
ResourceTypeNum=iRT_Source
CASE ('PLANTLOOPHEATINGDEMAND')
ResourceTypeNum=iRT_PlantLoopHeatingDemand
CASE ('PLANTLOOPCOOLINGDEMAND')
ResourceTypeNum=iRT_PlantLoopCoolingDemand
CASE DEFAULT
ResourceTypeNum=0
END SELECT
RETURN
END FUNCTION AssignResourceTypeNum