CLASSIC
Canadian Land Surface Scheme including Biogeochemical Cycles
|
Prints the name of the subroutine and an error code when an error condition is encountered. More...
Functions/Subroutines | |
subroutine | errorhandler (NAME, N) |
Prints the name of the subroutine and an error code when an error condition is encountered.
subroutine errorhandler | ( | character * ( * ), intent(in) | NAME, |
integer, intent(in) | N | ||
) |
[in] | name | Name 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.