CLASSIC
Canadian Land Surface Scheme including Biogeochemical Cycles
errorHandler.f90 File Reference

Prints the name of the subroutine and an error code when an error condition is encountered. More...

Functions/Subroutines

subroutine errorhandler (NAME, N)
 

Detailed Description

Prints the name of the subroutine and an error code when an error condition is encountered.

Author
J. D. Henderson, E. Chan

Function/Subroutine Documentation

◆ errorhandler()

subroutine errorhandler ( character * ( * ), intent(in)  NAME,
integer, intent(in)  N 
)
Parameters
[in]nameName of the subroutine in which the error was found N: error code

In CLASS, this subroutine is called when a test of ambient values of selected variables is performed and an abnormal condition is encountered. The name of the subroutine in which the condition arose is passed in, and is printed together with an error code, flagging the location of the error in the subroutine. A call to abort is then executed.