Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | SIunit | |||
character(len=*), | intent(in) | :: | IPunit |
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.
REAL(r64) FUNCTION getSpecificUnitIndex(SIunit,IPunit)
! SUBROUTINE INFORMATION:
! AUTHOR Jason Glazer of GARD Analytics, Inc.
! DATE WRITTEN September 21, 2012
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Return of the unit conversion index for a specific
! SI to IP unit conversion.
!
! Unlike LookupSItoIP, this function does not expect more
! the units in the two input parameters. No hints or
! defaults are used since both the SI and IP units are
! input by the user.
! METHODOLOGY EMPLOYED:
! REFERENCES:
! na
! USE STATEMENTS:
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: SIunit
CHARACTER(len=*), INTENT(IN) :: IPunit
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: found = 0
INTEGER :: iUnit = 0
DO iUnit = 1,UnitConvSize
IF (SameString(UnitConv(iUnit)%siName,SIunit)) THEN
IF (SameString(UnitConv(iUnit)%ipName,IPunit)) THEN
found = iUnit
EXIT
END IF
END IF
END DO
IF (found .NE. 0) THEN
getSpecificUnitIndex = found
ELSE
getSpecificUnitIndex = 0.0d0
END IF
END FUNCTION getSpecificUnitIndex