]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
n_treated_exceptions made global to be able to manipulate
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 8 Dec 2003 15:00:10 +0000 (15:00 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 8 Dec 2003 15:00:10 +0000 (15:00 +0000)
minor bug fixed after incrementing n_treated_exceptions

git-svn-id: https://svn.dealii.org/trunk@8245 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/exceptions.cc

index cd706d3c06833a95d8f9679b12e6d35b095f37ac..f4537fc30ad0f08b1f67bd38dd8232b2250430ae 100644 (file)
@@ -174,7 +174,7 @@ namespace deal_II_exceptions
                                      * displayed if the value is
                                      * zero.
                                      */
-    static unsigned int n_treated_exceptions;
+    unsigned int n_treated_exceptions;
   
 
     void issue_error_assert (const char *file,
@@ -241,7 +241,7 @@ namespace deal_II_exceptions
       if (std::uncaught_exception() == true)
        {
                                           // only display message once
-         if (n_treated_exceptions == 0)
+         if (n_treated_exceptions <= 1)
            std::cerr << "******** Program is not aborted since another exception is active! ********"
                      << std::endl;
        }

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.