Print the error trace and stop the program Use for unrecoverable errors
Usage: if (err%has_error()) call err%fatal()
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(error_t), | intent(in) | :: | self | |||
| integer(kind=default_int), | intent(in), | optional | :: | unit |
subroutine error_fatal(self, unit) !! Print the error trace and stop the program !! Use for unrecoverable errors !! !! Usage: !! if (err%has_error()) call err%fatal() class(error_t), intent(in) :: self integer(default_int), intent(in), optional :: unit if (.not. self%has_error()) return call self%print_trace(unit) error stop 1 end subroutine error_fatal