]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Print out exception details in a portable manner
authorMatthias Maier <tamiko@kyomu.43-1.org>
Wed, 16 Oct 2013 10:41:21 +0000 (10:41 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Wed, 16 Oct 2013 10:41:21 +0000 (10:41 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31253 0785d39b-7218-0410-832d-ea1e28bc413d

tests/lac/vector_memory.cc
tests/lac/vector_memory.output

index 43c2c4a87de0b8f3b0993c83e548a447eef16d3e..7a20f0aaeee5079eb81b1cb769cb0516e0d64afe 100644 (file)
@@ -86,7 +86,6 @@ main()
     }
   catch (StandardExceptions::ExcMemoryLeak e)
     {
-      e.print_exc_data(logfile);
-      e.print_info(logfile);
+      deallog << "Exception: " << e.get_exc_name() << std::endl;
     }
 }
index 199eb6cb97e6515a91e0b46969d59af53ac4c42b..41a042c920c9dbfec9c3fd4438707b49f1eae262 100644 (file)
@@ -1,11 +1,4 @@
 
 DEAL::GrowingVectorMemory:Overall allocated vectors: 10
 DEAL::GrowingVectorMemory:Maximum allocated vectors: 6
-An error occurred in file <vector_memory.cc> in function
-    dealii::GrowingVectorMemory<VECTOR>::~GrowingVectorMemory() [with VECTOR = dealii::Vector<double>]
-The violated condition was: 
-    current_alloc == 0
-The name and call sequence of the exception was:
-    StandardExceptions::ExcMemoryLeak(current_alloc)
-Additional Information: 
-Destroying memory handler while 1 objects are still allocated
+DEAL::Exception: StandardExceptions::ExcMemoryLeak(current_alloc)

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.