Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | nameOfSeason | |||
character(len=*), | intent(in) | :: | nameOfReferingObj |
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.
INTEGER FUNCTION LookUpSeason(nameOfSeason,nameOfReferingObj)
! SUBROUTINE INFORMATION:
! AUTHOR Jason Glazer of GARD Analytics, Inc.
! DATE WRITTEN May 2004
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Find the index for the season string provided or else
! raise a warning.
! METHODOLOGY EMPLOYED:
! REFERENCES:
! na
! USE STATEMENTS:
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: nameOfSeason
CHARACTER(len=*), INTENT(IN) :: nameOfReferingObj
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
IF (SameString(nameOfSeason,'Summer')) THEN
LookUpSeason = seasonSummer
ELSE IF (SameString(nameOfSeason,'Winter')) THEN
LookUpSeason = seasonWinter
ELSE IF (SameString(nameOfSeason,'Spring')) THEN
LookUpSeason = seasonSpring
ELSE IF (SameString(nameOfSeason,'Fall')) THEN
LookUpSeason = seasonFall
ELSE IF (SameString(nameOfSeason,'Annual')) THEN
LookUpSeason = seasonAnnual
ELSE
CALL ShowWarningError('UtilityCost: Invalid season name ' // TRIM(nameOfSeason) // ' in: ' // TRIM(nameOfReferingObj))
CALL ShowContinueError(' Defaulting to Annual')
LookUpSeason = seasonAnnual
END IF
END FUNCTION LookUpSeason