Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r64), | intent(in) | :: | Number | |||
type(ErlValueType), | intent(in), | optional | :: | OrigValue |
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 SetErlValueNumber(Number, OrigValue) RESULT(newValue)
! FUNCTION INFORMATION:
! AUTHOR P. Ellis
! DATE WRITTEN unknown
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! <description>
! METHODOLOGY EMPLOYED:
! <description>
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
! na
REAL(r64), INTENT(IN) :: Number
TYPE(ErlValueType), OPTIONAL, Intent(IN) :: OrigValue
TYPE(ErlValueType) :: newValue
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
! na
! FLOW:
IF (Present(OrigValue)) THEN ! preserve other parts of structure and only updated Value%Number
newValue = OrigValue
newValue%Number = Number
ELSE
newValue%Type = ValueNumber
newValue%Number = Number
ENDIF
RETURN
END FUNCTION SetErlValueNumber