]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Better way for recording the exception: Only print its name, not the full info in...
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 31 May 2013 16:01:25 +0000 (16:01 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 31 May 2013 16:01:25 +0000 (16:01 +0000)
git-svn-id: https://svn.dealii.org/trunk@29687 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/constraint_matrix_trilinos_bug.cc
tests/mpi/constraint_matrix_trilinos_bug/ncpu_10/cmp/generic
tests/mpi/constraint_matrix_trilinos_bug/ncpu_4/cmp/generic

index a8c7445d5e0c0e409904dd95dd570a2499895e53..f75280fa80b5a1391f0215ba441d4038e3b42447 100644 (file)
@@ -116,7 +116,7 @@ void test()
     catch (const ExceptionBase &e)
       {
        if (myid==0)
-         deallog << "Exception: " << e.what() << std::endl;
+         deallog << "Exception: " << e.get_exc_name() << std::endl;
        throwing=true;
       }
     Assert(throwing, ExcInternalError());
index 8de127041a38faab39f6804970045f38b99447c4..52e0f2ea1da48b54955049f00cce1eec89326d82 100644 (file)
@@ -1,13 +1,2 @@
 
-DEAL:0:2d::Exception: 
---------------------------------------------------------
-An error occurred in file <constraint_matrix.templates.h> in function
-    void dealii::internal::{anonymous}::import_vector_with_ghost_elements(const dealii::TrilinosWrappers::MPI::Vector&, const dealii::IndexSet&, const dealii::IndexSet&, dealii::TrilinosWrappers::MPI::Vector&, dealii::internal::bool2type<false>)
-The violated condition was: 
-    !vec.has_ghost_elements()
-The name and call sequence of the exception was:
-    TrilinosWrappers::VectorBase::ExcGhostsPresent()
-Additional Information: 
-(none)
---------------------------------------------------------
-
+DEAL:0:2d::Exception: TrilinosWrappers::VectorBase::ExcGhostsPresent()
index 8de127041a38faab39f6804970045f38b99447c4..52e0f2ea1da48b54955049f00cce1eec89326d82 100644 (file)
@@ -1,13 +1,2 @@
 
-DEAL:0:2d::Exception: 
---------------------------------------------------------
-An error occurred in file <constraint_matrix.templates.h> in function
-    void dealii::internal::{anonymous}::import_vector_with_ghost_elements(const dealii::TrilinosWrappers::MPI::Vector&, const dealii::IndexSet&, const dealii::IndexSet&, dealii::TrilinosWrappers::MPI::Vector&, dealii::internal::bool2type<false>)
-The violated condition was: 
-    !vec.has_ghost_elements()
-The name and call sequence of the exception was:
-    TrilinosWrappers::VectorBase::ExcGhostsPresent()
-Additional Information: 
-(none)
---------------------------------------------------------
-
+DEAL:0:2d::Exception: TrilinosWrappers::VectorBase::ExcGhostsPresent()

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.