From: guido Date: Mon, 8 Dec 2003 15:00:10 +0000 (+0000) Subject: n_treated_exceptions made global to be able to manipulate X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ec084bfbc972461f2a0474548d02e593b3dac38;p=dealii-svn.git n_treated_exceptions made global to be able to manipulate minor bug fixed after incrementing n_treated_exceptions git-svn-id: https://svn.dealii.org/trunk@8245 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/exceptions.cc b/deal.II/base/source/exceptions.cc index cd706d3c06..f4537fc30a 100644 --- a/deal.II/base/source/exceptions.cc +++ b/deal.II/base/source/exceptions.cc @@ -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; }