Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | value |
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 LogicalToInteger (value) RESULT (iOut)
! FUNCTION INFORMATION:
! AUTHOR Greg Stark
! DATE WRITTEN July 2008
! MODIFIED September 2010, Kyle Benne
! Modified FUNCTION syntax to use RESULT keyword
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! Maps logical values into integer values
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
INTEGER :: iOut
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
LOGICAL, INTENT(IN) :: value
IF (value) THEN
iOut = 1
ELSE
iOut = 0
END IF
END FUNCTION LogicalToInteger