If a non-zero status is specified, the program is terminated with the error status code. If no status is specified or status=0, the program stops with code 0. A message may be provided to print before exiting, useful e.g. for "contact developer" messages upon programming errors.
- Parameters
-
[in] | status | optional error code to return (default=0) |
[in] | message | optional message to print before stopping |
Definition at line 23 of file ErrorUtil.f90.
24 integer(I4B),
intent(in),
optional :: status
25 character(len=*),
intent(in),
optional :: message
27 if (
associated(pstop_alternative))
then
28 if (
present(message)) print *, message
29 if (
present(status))
then
30 call pstop_alternative(status)
32 call pstop_alternative(0)
36 if (
present(message)) print *, message
37 if (
present(status))
then