Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(MeterType), | intent(in) | :: | meter |
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 DetermineIndexGroupFromMeterGroup (meter) RESULT (indexGroup)
! FUNCTION INFORMATION:
! AUTHOR Greg Stark
! DATE WRITTEN May 2009
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! This function attemps to determine how a meter variable should be
! grouped. It does this by parsing the meter group
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
TYPE (MeterType), INTENT(IN) :: meter ! the meter
CHARACTER(len=MaxNameLength) :: indexGroup
! FUNCTION LOCAL VARIABLE DECLARATIONS:
IF (LEN(TRIM(meter%Group)) > 0) THEN
indexGroup = TRIM(meter%Group)
ELSE
indexGroup = 'Facility'
ENDIF
IF (LEN(TRIM(meter%ResourceType)) > 0) THEN
indexGroup = TRIM(indexGroup) // ':' // TRIM(meter%ResourceType)
ENDIF
IF (LEN(TRIM(meter%EndUse)) > 0) THEN
indexGroup = TRIM(indexGroup) // ':' // TRIM(meter%EndUse)
ENDIF
IF (LEN(TRIM(meter%EndUseSub)) > 0) THEN
indexGroup = TRIM(indexGroup) // ':' // TRIM(meter%EndUseSub)
ENDIF
RETURN
END FUNCTION DetermineIndexGroupFromMeterGroup