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 getSpecificUnitDivider(SIunit,IPunit)
! SUBROUTINE INFORMATION:
! AUTHOR Jason Glazer of GARD Analytics, Inc.
! DATE WRITTEN February 13, 2009
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Returns the divider (1/multiplier) for a specific
! SI to IP unit conversion. No offset is provided so
! it cannot be used to convert units such as temperatures
! that include an offset.
!
! SI = (IP * multipier) + offset
!
! 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:
REAL(r64) :: mult
mult = getSpecificUnitMultiplier(SIunit,IPunit)
IF (mult .NE. 0) THEN
getSpecificUnitDivider = 1/mult
ELSE
getSpecificUnitDivider = 0.0d0
END IF
END FUNCTION getSpecificUnitDivider