]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a note in changes.h
authorMatthias Maier <tamiko@kyomu.43-1.org>
Tue, 16 Apr 2013 14:42:54 +0000 (14:42 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Tue, 16 Apr 2013 14:42:54 +0000 (14:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@29302 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/news/changes.h
deal.II/include/deal.II/base/exceptions.h
deal.II/source/base/exceptions.cc

index 38a6f061a97e133ab59fe7dd864ace3df3e0cd0d..0b389615b6a9acd4252385932d6fc5aa76586d6f 100644 (file)
@@ -25,6 +25,13 @@ inconvenience this causes.
 
 <ol>
 
+<li> Changed: Internal structures of ExceptionBase are now thread safe. The
+Assert macro does not print an exception to deallog any more prior to
+throwing if deal_II_exceptions::abort_on_exception==false. Removed: A
+number of obsolete Exceptions that are not used in the library any more.
+<br>
+(Matthias Maier, 2013/04/16)
+
 <li> Removed: A number of header files that have been deprecated a long time
 ago have been removed. All of them had previously only included the header file
 that had superseded them. To upgrade, simply include the currently used
index e850c4e51e1f7d44292dc078d75c8a51d2a062da..6970b99df1c95759c88e785deabe72d9575f1c0a 100644 (file)
@@ -195,8 +195,8 @@ namespace deal_II_exceptions
     /**
      * Conditionally abort the program. Depending on whether
      * disable_abort_on_exception was called, this function either aborts
-     * the program flow by printing an error message and calling
-     * <tt>std::abort()</tt>, or throws @p exc instead.
+     * the program flow by printing the error message provided by @p exc
+     * and calling <tt>std::abort()</tt>, or throws @p exc instead.
      */
     void abort (const ExceptionBase &exc);
 
index f7f5582a3b815a23be9ad8630ce522467628aa4b..14689ea8d1ef524c1f4598995d0d821c15a277a7 100644 (file)
@@ -130,10 +130,12 @@ void ExceptionBase::set_fields (const char *f,
   print_stack_trace (converter);
 
   if (!deal_II_exceptions::additional_assert_output.empty())
-    converter << "--------------------------------------------------------"
-              << std::endl
-              << deal_II_exceptions::additional_assert_output
-              << std::endl;
+    {
+      converter << "--------------------------------------------------------"
+                << std::endl
+                << deal_II_exceptions::additional_assert_output
+                << std::endl;
+    }
 
   converter << "--------------------------------------------------------"
             << std::endl;
@@ -281,6 +283,7 @@ namespace deal_II_exceptions
     {
       if(dealii::deal_II_exceptions::abort_on_exception)
         {
+          //* Print the error message and bail out:
           std::cerr << exc.what() << std::endl;
           std::abort();
         }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.