Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | unitConvIndex | |||
real(kind=r64), | intent(in) | :: | SIvalue |
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 ConvertIPdelta(unitConvIndex,SIvalue)
! SUBROUTINE INFORMATION:
! AUTHOR Jason Glazer of GARD Analytics, Inc.
! DATE WRITTEN February 18, 2009
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Apply the selected unit conversion to the input value
! expressed in SI units to result in IP units. This routine
! only uses the mulitplier and NOT the offset and is appropriate
! when the number being converted is a difference or delta
! between values (such as a temperature difference).
! METHODOLOGY EMPLOYED:
! REFERENCES:
! na
! USE STATEMENTS:
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER,INTENT(IN) :: unitConvIndex
REAL(r64), INTENT(IN) :: SIvalue
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
! na
IF ((unitConvIndex .GT. 0) .AND. (unitConvIndex .LE. UnitConvSize)) THEN
ConvertIPdelta = SIvalue * UnitConv(unitConvIndex)%mult
ELSE
ConvertIPdelta = 0.0d0
END IF
END FUNCTION ConvertIPdelta