| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | Roughness | 
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 DisplayMaterialRoughness(Roughness) RESULT(cRoughness)
          ! SUBROUTINE INFORMATION:
          !       AUTHOR         Linda K. Lawrie
          !       DATE WRITTEN   October 2005
          !       MODIFIED       na
          !       RE-ENGINEERED  na
          ! PURPOSE OF THIS SUBROUTINE:
          ! This subroutine is given a roughness value and returns the character representation.
          ! METHODOLOGY EMPLOYED:
          ! na
          ! REFERENCES:
          ! na
          ! USE STATEMENTS:
          ! na
  IMPLICIT NONE    ! Enforce explicit typing of all variables in this routine
          ! SUBROUTINE ARGUMENT DEFINITIONS:
  INTEGER, INTENT(IN)   :: Roughness   ! Roughness String
  CHARACTER(len=20)     :: cRoughness  ! Character representation of Roughness
          ! SUBROUTINE PARAMETER DEFINITIONS:
          ! na
          ! INTERFACE BLOCK SPECIFICATIONS:
          ! na
          ! DERIVED TYPE DEFINITIONS:
          ! na
          ! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
    !Select the correct Number for the associated ascii name for the roughness type
    SELECT CASE(Roughness)
      CASE(VeryRough)
        cRoughness='VeryRough'
      CASE(Rough)
        cRoughness='Rough'
      CASE(MediumRough)
        cRoughness='MediumRough'
      CASE(MediumSmooth)
        cRoughness='MediumSmooth'
      CASE(Smooth)
        cRoughness='Smooth'
      CASE(VerySmooth)
        cRoughness='VerySmooth'
      CASE DEFAULT
        cRoughness=' '
    END SELECT
  RETURN
END FUNCTION DisplayMaterialRoughness