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=*) | :: | ErrorMessage | ||||
integer, | optional | :: | OutUnit1 | |||
integer, | optional | :: | OutUnit2 |
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 ShowFatalError(ErrorMessage,OutUnit1,OutUnit2)
! SUBROUTINE INFORMATION:
! AUTHOR Linda K. Lawrie
! DATE WRITTEN September 1997
! MODIFIED Kyle Benne
! August 2010
! Added sqlite output
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine puts ErrorMessage with a Fatal designation on
! designated output files. Then, the program is aborted.
! METHODOLOGY EMPLOYED:
! Calls ShowErrorMessage utility routine.
! Calls AbortEnergyPlus
! REFERENCES:
! na
! USE STATEMENTS:
USE DataErrorTracking
USE DataInterfaces, ONLY: ShowErrorMessage
USE General, ONLY: RoundSigDigits
USE SQLiteProcedures, ONLY: CreateSQLiteErrorRecord, WriteOutputToSQLite
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*) ErrorMessage
INTEGER, OPTIONAL :: OutUnit1
INTEGER, OPTIONAL :: OutUnit2
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! see DataInterfaces
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
LOGICAL :: NoIdf=.false.
LOGICAL :: NoIDD=.false.
CALL ShowErrorMessage(' ** Fatal ** '//ErrorMessage,OutUnit1,OutUnit2)
CALL DisplayString('**FATAL:'//TRIM(ErrorMessage))
IF (INDEX(ErrorMessage,'in.idf missing') > 0) NoIdf=.true.
IF (INDEX(ErrorMessage,'Energy+.idd missing') > 0) NoIDD=.true.
CALL ShowErrorMessage(' ...Summary of Errors that led to program termination:',OutUnit1,OutUnit2)
CALL ShowErrorMessage(' ..... Reference severe error count='//TRIM(RoundSigDigits(TotalSevereErrors)),OutUnit1,OutUnit2)
CALL ShowErrorMessage(' ..... Last severe error='//TRIM(LastSevereError),OutUnit1,OutUnit2)
IF(WriteOutputToSQLite) THEN
CALL CreateSQLiteErrorRecord(1,2,ErrorMessage,1)
ENDIF
CALL AbortEnergyPlus(NoIdf,NoIDD)
RETURN
END SUBROUTINE ShowFatalError