Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | nameOfTariff | |||
character(len=*), | intent(in) | :: | nameOfReferingObj | |||
logical, | intent(inout) | :: | ErrorsFound | |||
character(len=*), | intent(in) | :: | nameOfCurObj |
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 FindTariffIndex(nameOfTariff,nameOfReferingObj,ErrorsFound,nameOfCurObj)
! 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 tariff 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) :: nameOfTariff
CHARACTER(len=*), INTENT(IN) :: nameOfReferingObj
LOGICAL, INTENT(INOUT) :: ErrorsFound
CHARACTER(len=*), INTENT(IN) :: nameOfCurObj
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: iTariff
INTEGER :: found
found = 0
DO iTariff = 1, numTariff
IF (SameString(nameOfTariff, tariff(iTariff)%tariffName)) THEN
found = iTariff
EXIT
END IF
END DO
IF (found .GT. 0) THEN
FindTariffIndex = found
ELSE
CALL ShowSevereError(trim(nameOfCurObj)//'="'//trim(nameOfReferingObj)//'" invalid tariff referenced')
CALL ShowContinueError ('not found UtilityCost:Tariff="'//trim(nameOfTariff)//'".')
ErrorsFound=.true.
FindTariffIndex = 0
END IF
END FUNCTION FindTariffIndex