Nodes of different colours represent the following:
Solid arrows point from a parent (sub)module to the submodule which is descended from it. Dashed arrows point from a module being used to the module or program unit using it. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r64), | intent(in) | :: | ValueToBound | |||
real(kind=r64), | intent(in) | :: | LowerBound | |||
real(kind=r64), | intent(in) | :: | UpperBound |
REAL(r64) FUNCTION BoundValueToWithinTwoValues(ValueToBound, LowerBound, UpperBound) RESULT(BoundedValue)
! FUNCTION INFORMATION:
! AUTHOR Edwin Lee
! DATE WRITTEN September 2010
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! Provides a clean way to quickly bound a generic value to within any two other values
! METHODOLOGY EMPLOYED:
! Bound up to min and down to max
! USE STATEMENTS:
USE DataLoopNode, ONLY : Node
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
REAL(r64), INTENT(IN) :: ValueToBound
REAL(r64), INTENT(IN) :: LowerBound
REAL(r64), INTENT(IN) :: UpperBound
BoundedValue = ValueToBound
BoundedValue = MAX(BoundedValue, LowerBound)
BoundedValue = MIN(BoundedValue, UpperBound)
RETURN
END FUNCTION BoundValueToWithinTwoValues