From f2dbd14a4cbbbb74f82f72f3444f59291729d3bf Mon Sep 17 00:00:00 2001 From: kanschat Date: Wed, 19 Jul 2006 12:41:50 +0000 Subject: [PATCH] drop a line into deallog if continuing after exception git-svn-id: https://svn.dealii.org/trunk@13394 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/exceptions.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deal.II/base/source/exceptions.cc b/deal.II/base/source/exceptions.cc index 03d0aafee5..404b91b50a 100644 --- a/deal.II/base/source/exceptions.cc +++ b/deal.II/base/source/exceptions.cc @@ -13,6 +13,7 @@ #include +#include #include #include #include @@ -237,6 +238,10 @@ void ExceptionBase::print_exc_data (std::ostream &out) const << "The name and call sequence of the exception was:" << std::endl << " " << exc << std::endl << "Additional Information: " << std::endl; + // Additionally, leave a trace in + // deallog if we do not stop here + if (deal_II_exceptions::abort_on_exception == false) + deallog << exc << std::endl; } -- 2.39.5