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.
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.
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 CloseMiscOpenFiles
! SUBROUTINE INFORMATION:
! AUTHOR Linda K. Lawrie
! DATE WRITTEN December 1997
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine scans potential unit numbers and closes
! any that are still open.
! METHODOLOGY EMPLOYED:
! Use INQUIRE to determine if file is open.
! REFERENCES:
! na
! USE STATEMENTS:
USE DaylightingManager, ONLY: CloseReportIllumMaps, CloseDFSFile
USE DataGlobals, ONLY: OutputFileDebug
USE DataReportingFlags, ONLY: DebugOutput
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
! na
! SUBROUTINE PARAMETER DEFINITIONS:
INTEGER, PARAMETER :: MaxUnitNumber = 1000
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
CHARACTER(len=20) DebugPosition
! LOGICAL :: exists, opened
! INTEGER :: UnitNumber
! INTEGER :: ios
CALL CloseReportIllumMaps
CALL CloseDFSFile
! In case some debug output was produced, it appears that the
! position on the INQUIRE will not be 'ASIS' (3 compilers tested)
! So, will want to keep....
INQUIRE(OutputFileDebug,POSITION=DebugPosition)
IF (TRIM(DebugPosition) /= 'ASIS') THEN
DebugOutput=.True.
ENDIF
IF (DebugOutput) THEN
CLOSE (OutputFileDebug)
ELSE
CLOSE (OutputFileDebug,STATUS='DELETE')
END IF
RETURN
END SUBROUTINE CloseMiscOpenFiles