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 | |||
integer, | intent(in) | :: | NodeNumToBoundWith |
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 BoundValueToNodeMinMaxAvail(ValueToBound, NodeNumToBoundWith) 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 node's minavail and maxavail range
! METHODOLOGY EMPLOYED:
! Bound up to min avail, down to max avail
! 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
INTEGER, INTENT(IN) :: NodeNumToBoundWith
BoundedValue = ValueToBound
BoundedValue = MAX(BoundedValue, Node(NodeNumToBoundWith)%MassFlowRateMinAvail)
BoundedValue = MIN(BoundedValue, Node(NodeNumToBoundWith)%MassFlowRateMaxAvail)
RETURN
END FUNCTION BoundValueToNodeMinMaxAvail