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 | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | Name | |||
| integer, | intent(inout) | :: | IndexPtr | |||
| integer, | intent(in) | :: | SysType | |||
| logical, | intent(inout) | :: | ErrorsFound | |||
| character(len=*), | intent(in), | optional | :: | ThisObjectType | ||
| logical, | intent(in), | optional | :: | SuppressWarning | 
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.
SUBROUTINE GetRefrigeratedRackIndex(Name,IndexPtr,SysType,ErrorsFound,ThisObjectType,SuppressWarning)
          ! SUBROUTINE INFORMATION:
          !       AUTHOR         Richard Raustad
          !       DATE WRITTEN   June 2007
          !       MODIFIED       Therese Stovall May 2008
          !       RE-ENGINEERED  na
          ! PURPOSE OF THIS SUBROUTINE:
          ! This subroutine sets an index for a given refrigerated rack or refrigeration condenser
          !  -- issues error message if the rack or condenser is not found.
          ! METHODOLOGY EMPLOYED:
          ! na
          ! REFERENCES:
          ! na
          ! USE STATEMENTS:
  USE InputProcessor, ONLY: FindItemInList
  !USE DataGlobals,    ONLY: ShowSevereError
  IMPLICIT NONE    ! Enforce explicit typing of all variables in this routine
          ! SUBROUTINE ARGUMENT DEFINITIONS:
  CHARACTER(len=*), INTENT(IN) :: Name
  INTEGER, INTENT(INOUT)       :: IndexPtr
  INTEGER, INTENT(IN   )       :: SysType
  LOGICAL, INTENT(INOUT)       :: ErrorsFound
  CHARACTER(len=*), INTENT(IN), OPTIONAL :: ThisObjectType
  LOGICAL, INTENT(IN), OPTIONAL :: SuppressWarning
          ! SUBROUTINE PARAMETER DEFINITIONS:
          ! na
          ! INTERFACE BLOCK SPECIFICATIONS
          ! na
          ! DERIVED TYPE DEFINITIONS
          ! na
          ! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
          ! na
CALL CheckRefrigerationInput
SELECT CASE (SysType)
  CASE (RefrigSystemTypeRack)
    IndexPtr = FindItemInList(Name,RefrigRack%Name,NumRefrigeratedRacks)
    IF (IndexPtr == 0) THEN
      IF(PRESENT(SuppressWarning)) THEN
  !     No warning printed if only searching for the existence of a refrigerated rack
      ELSE
        IF (PRESENT(ThisObjectType)) THEN
          CALL ShowSevereError(TRIM(ThisObjectType)//', GetRefrigeratedRackIndex: Rack not found='//TRIM(Name))
        ELSE
          CALL ShowSevereError('GetRefrigeratedRackIndex: Rack not found='//TRIM(Name))
        ENDIF
      ENDIF
      ErrorsFound = .TRUE.
    ENDIF
 CASE (RefrigSystemTypeDetailed)
    IndexPtr = FindItemInList(Name,Condenser%Name,NumRefrigCondensers)
    IF (IndexPtr == 0) THEN
      IF(PRESENT(SuppressWarning)) THEN
  !     No warning printed if only searching for the existence of a refrigeration Condenser
      ELSE
        IF (PRESENT(ThisObjectType)) THEN
          CALL ShowSevereError(TRIM(ThisObjectType)//', GetRefrigeratedRackIndex: Condenser not found='//TRIM(Name))
        ELSE
          CALL ShowSevereError('GetRefrigeratedRackIndex: Condenser not found='//TRIM(Name))
        ENDIF
      ENDIF
      ErrorsFound = .TRUE.
    ENDIF
END SELECT
  RETURN
END SUBROUTINE GetRefrigeratedRackIndex