Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r64), | intent(in) | :: | X | |||
real(kind=r64), | intent(in) | :: | X0 | |||
real(kind=r64), | intent(in) | :: | X1 | |||
real(kind=r64), | intent(in) | :: | F0 | |||
real(kind=r64), | intent(in) | :: | F1 |
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.
FUNCTION InterpolateBetweenTwoValues(X, X0, X1, F0, F1 ) RESULT (InterpResult)
! FUNCTION INFORMATION:
! AUTHOR Brent Griffith
! DATE WRITTEN June 2009
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! Interpolate between two results
! METHODOLOGY EMPLOYED:
! linear interpolation
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
REAL(r64) , INTENT(IN) :: X
REAL(r64) , INTENT(IN) :: X0
REAL(r64) , INTENT(IN) :: X1
REAL(r64) , INTENT(IN) :: F0
REAL(r64) , INTENT(IN) :: F1
REAL(r64) :: InterpResult
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
! na
InterpResult = F0 + ( (X - X0) / (X1 - X0) ) * (F1 - F0)
RETURN
END FUNCTION InterpolateBetweenTwoValues