]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Adjust the testsuite to the changes in Exception handling
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 16 Apr 2013 14:42:52 +0000 (14:42 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 16 Apr 2013 14:42:52 +0000 (14:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@29301 0785d39b-7218-0410-832d-ea1e28bc413d

30 files changed:
tests/base/log_crash_01.cc
tests/base/reference.cc
tests/base/reference/cmp/generic
tests/base/slice_vector.cc
tests/bits/accessor_equality.cc
tests/bits/distorted_cells_07.cc
tests/bits/distorted_mapped_cells_01.cc
tests/bits/distorted_mapped_cells_02.cc
tests/bits/sparse_matrix_add_entries_01.cc
tests/deal.II/fe_values_view_invalid_01.cc
tests/deal.II/fe_values_view_invalid_02.cc
tests/deal.II/fe_values_view_invalid_03.cc
tests/deal.II/memory_consumption_01.cc
tests/deal.II/user_data_01.cc
tests/deal.II/user_data_01/cmp/generic
tests/distributed_grids/anisotropic.cc
tests/fe/block_mask_02.cc
tests/fe/block_mask_06.cc
tests/fe/block_mask_07.cc
tests/fe/component_mask_02.cc
tests/fe/component_mask_06.cc
tests/fe/component_mask_07.cc
tests/fe/component_mask_14.cc
tests/hp/fe_collection_04.cc
tests/lac/constraints_c1.cc
tests/lac/constraints_c1_02.cc
tests/mpi/ghost_03.cc
tests/mpi/trilinos_ghost_03.cc
tests/mpi/trilinos_ghost_03_linfty.cc
tests/tests.h

index ddeb38d72b67e68266f1001bf87f2e1c40828b59..d32a28772daf9cb377bc539536b264dbd8c2ff2b 100644 (file)
 
 int main()
 {
-  deal_II_exceptions::disable_abort_on_exception ();
-
-  std::ofstream logfile("log_crash_01/output");
-  deallog.attach(logfile);
-  deallog << "OK" << std::endl;
-
-  deallog << "no newline here!";
+  deal_II_exceptions::disable_abort_on_exception();
+
+  try
+    {
+      std::ofstream logfile("log_crash_01/output");
+      deallog.attach(logfile);
+      deallog << "OK" << std::endl;
+      deallog << "no newline here!";
+    }
+  catch (ExceptionBase &e)
+    {
+      deallog << e.get_exc_name() << std::endl;
+    }
 }
index b77606cdfe97232910df6a98611001fd44158dcb..417781bb57c0513dea3068bd201155adac5ab032 100644 (file)
@@ -45,6 +45,7 @@ class Test : public Subscriptor
 int main()
 {
   deal_II_exceptions::disable_abort_on_exception();
+
   std::ofstream logfile("reference/output");
   deallog.attach(logfile);
   deallog.depth_console(0);
@@ -81,12 +82,12 @@ int main()
       r = &c;
       Test d("D");
       r = &d;
-                                      // Destruction of "Test R" will
-                                      // cause a spurious ExcNotUsed
-                                      // here, since D was deleted first
+      // Destruction of "Test R" will cause a spurious ExcNotUsed here,
+      // since D was deleted first
     }
-  catch (...)
+  catch (ExceptionBase &e)
     {
+      deallog << e.get_exc_name() << std::endl;
     }
   
 }
index 1970a44da57679dc9ab067cc86e8f83faea411c9..c109e3924889cb48787a64b8e19d6f9f10e3d5ef 100644 (file)
@@ -10,7 +10,7 @@ DEAL::u const
 DEAL::Construct C
 DEAL::Construct D
 DEAL::Destruct D
-DEAL::ExcInUse (counter, object_info->name(), infostring)
 DEAL::Destruct C
 DEAL::Destruct B
 DEAL::Destruct A
+DEAL::ExcInUse (counter, object_info->name(), infostring)
index 02584a3b7cf47af1e599a87b4838eb061fc7ed3e..95b9166c24617eea036b0e6a6be3410e1a58a8e5 100644 (file)
@@ -34,6 +34,7 @@ void f(const std::vector<int>& v)
 int main()
 {
   deal_II_exceptions::disable_abort_on_exception();
+
   std::ofstream logfile("slice_vector/output");
   deallog.attach(logfile);
   deallog.depth_console(0);
@@ -59,8 +60,8 @@ int main()
     {
       make_slice(v, 3, 5);
     }
-  catch(...)
+  catch (ExceptionBase &e)
     {
+      deallog << e.get_exc_name() << std::endl;
     }
-  
 }
index 0aa09409beed6f12bde610299f59a1af3c70cd73..45b3bdbb41775908d9c4113abc0d223e0ff46340 100644 (file)
@@ -92,8 +92,9 @@ void test ()
       {
        (dof_handler.begin_active() != dof_handler2.begin_active());
       }
-    catch (...)
+    catch (ExceptionBase &e)
       {
+        deallog << e.get_exc_name() << std::endl;
       }
   }
 }
@@ -102,6 +103,7 @@ void test ()
 int main ()
 {
   deal_II_exceptions::disable_abort_on_exception();
+
   std::ofstream logfile("accessor_equality/output");
   deallog.attach(logfile);
   deallog.depth_console(0);
index 5d65d87f75e9c46a497b3125f0dedf1bee538ad4..b03f6b30a86e3185a11ebf3d485f997580235352 100644 (file)
@@ -80,8 +80,9 @@ void check (const unsigned int testcase)
     {
       fe_values.reinit(coarse_grid.begin());
     }
-  catch (...)
+  catch (ExceptionBase &e)
     {
+      deallog << e.get_exc_name() << std::endl;
     }
 }
 
@@ -89,6 +90,7 @@ void check (const unsigned int testcase)
 int main ()
 {
   deal_II_exceptions::disable_abort_on_exception();
+
   std::ofstream logfile("distorted_cells_07/output");
   deallog.attach(logfile);
   deallog.depth_console(0);
index db272f36908424d1a07a2ff9be49c62f326963d4..009dc53b1df0373a96e7b658f4de4770fdfdc888 100644 (file)
@@ -66,10 +66,10 @@ void test()
          for (unsigned int q=0; q<quad.size(); ++q)
            integral += fe_val.JxW(q);
        }
-      catch (...)
-       {
-       }
-      
+      catch (ExceptionBase &e)
+        {
+          deallog << e.get_exc_name() << std::endl;
+        }
     }
   deallog << "Integral = " << integral << std::endl;
 }
@@ -79,6 +79,7 @@ int
 main()
 {
   deal_II_exceptions::disable_abort_on_exception();
+
   std::ofstream logfile ("distorted_mapped_cells_01/output");
   deallog << std::setprecision(4) << std::fixed;
   deallog.attach(logfile);
index 59c73437bfd10ad23364b2965504edbf7cda3753..b98a54c519a5f0c7f020dfb74f287bbf7ee30dbb 100644 (file)
@@ -48,10 +48,10 @@ void test()
       for (unsigned int q=0; q<quad.size(); ++q)
         integral += fe_val.JxW(q);
       }
-      catch (...)
-       {
-       }
-      
+    catch (ExceptionBase &e)
+      {
+        deallog << e.get_exc_name() << std::endl;
+      }
     }
   deallog << "Integral = " << integral << std::endl;
 }
@@ -61,6 +61,7 @@ int
 main()
 {
   deal_II_exceptions::disable_abort_on_exception();
+
   std::ofstream logfile ("distorted_mapped_cells_02/output");
   deallog << std::setprecision(4) << std::fixed;
   deallog.attach(logfile);
index 9e40b81b11c0558ca28afa4bf43bd5db158ab1e6..9d520a4ac3be5b5295ca4063ac02441363f5d6d0 100644 (file)
@@ -68,23 +68,24 @@ void test ()
                                // try to add an invalid list of indices to
                                // first and last row, should throw an
                                // exception
-  deal_II_exceptions::disable_abort_on_exception();
   for (unsigned int i=0; i<m.m(); ++i)
     values[i] = 0.5*i - 1.5;
   try
     {
       m.add(0,m.m(),&indices[0], &values[0], false, true);
     }
-  catch (...)
+  catch (ExceptionBase &e)
     {
+      deallog << e.get_exc_name() << std::endl;
     }
 
   try
     {
       m.add(m.m()-1,m.m(),&indices[0], &values[0], false, true);
     }
-  catch (...)
+  catch (ExceptionBase &e)
     {
+      deallog << e.get_exc_name() << std::endl;
     }
 
   deallog << "OK" << std::endl;
@@ -94,6 +95,8 @@ void test ()
 
 int main ()
 {
+  deal_II_exceptions::disable_abort_on_exception();
+
   std::ofstream logfile("sparse_matrix_add_entries_01/output");
   deallog.attach(logfile);
   deallog.depth_console(0);
index 1312249c9b59fcb7369f39bab49ce612bb5bbd9c..07adb65da89f8accc62a37b41d59c59a248d1125 100644 (file)
@@ -45,8 +45,9 @@ void test (const Triangulation<dim>& tr,
     {
       fe_values[extr];             // invalid access
     }
-  catch (const std::exception &exc)
+  catch (ExceptionBase &e)
     {
+      deallog << e.get_exc_name() << std::endl;
       goto ok;
     }
 
@@ -71,6 +72,8 @@ void test()
 
 int main()
 {
+  deal_II_exceptions::disable_abort_on_exception();
+
   std::ofstream logfile ("fe_values_view_invalid_01/output");
   deallog << std::setprecision (2);
 
@@ -78,8 +81,6 @@ int main()
   deallog.depth_console (0);
   deallog.threshold_double(1.e-7);
 
-  deal_II_exceptions::disable_abort_on_exception();
-
   test<1>();
   test<2>();
   test<3>();
index f5b8e980d958e2d07a9e4b78bcae3c655b81aa62..5a746ea049c4c15771edfc4cabc2c6e9e8fa20ca 100644 (file)
@@ -45,8 +45,9 @@ void test (const Triangulation<dim>& tr,
     {
       fe_values[extr];             // invalid access
     }
-  catch (const std::exception &exc)
+  catch (ExceptionBase &e)
     {
+      deallog << e.get_exc_name() << std::endl;
       goto ok;
     }
 
@@ -71,6 +72,8 @@ void test()
 
 int main()
 {
+  deal_II_exceptions::disable_abort_on_exception();
+
   std::ofstream logfile ("fe_values_view_invalid_02/output");
   deallog << std::setprecision (2);
 
@@ -78,8 +81,6 @@ int main()
   deallog.depth_console (0);
   deallog.threshold_double(1.e-7);
 
-  deal_II_exceptions::disable_abort_on_exception();
-
   test<1>();
   test<2>();
   test<3>();
index 15057948aaeb2a6b6fa378b416ee6cdb4fc10796..de5b3666036c68254cfcd84115e013e8ad2a4b4f 100644 (file)
@@ -45,8 +45,9 @@ void test (const Triangulation<dim>& tr,
     {
       fe_values[extr];             // invalid access
     }
-  catch (const std::exception &exc)
+  catch (ExceptionBase &e)
     {
+      deallog << e.get_exc_name() << std::endl;
       goto ok;
     }
 
@@ -71,6 +72,8 @@ void test()
 
 int main()
 {
+  deal_II_exceptions::disable_abort_on_exception();
+
   std::ofstream logfile ("fe_values_view_invalid_03/output");
   deallog << std::setprecision (2);
 
@@ -78,8 +81,6 @@ int main()
   deallog.depth_console (0);
   deallog.threshold_double(1.e-7);
 
-  deal_II_exceptions::disable_abort_on_exception();
-
   test<1>();
   test<2>();
   test<3>();
index 6c2fd84d83ead4eb27e63e0f04578702bc7faf52..cfab6c7e57b6da06de592bdba3fc0905bf4f4a22 100644 (file)
@@ -381,6 +381,7 @@ void Step6<dim>::run ()
 int main()
 {
   deal_II_exceptions::disable_abort_on_exception();
+
   std::ofstream logfile("memory_consumption_01/output");
   deallog.attach(logfile);
   deallog.depth_console(0);
index c334786c9b0ae6e1f106cb2ce43b7a59895495e3..d27da1e6c464046e6f3b94a68b7259ff69ca285f 100644 (file)
@@ -249,8 +249,9 @@ user_indices(Triangulation<dim>& tr)
     {
       tr.begin()->user_pointer();
     }
-  catch (...)
+  catch (ExceptionBase &e)
     {
+      deallog << e.get_exc_name() << std::endl;
     }
   tr.begin()->user_index();
   
@@ -283,6 +284,7 @@ void check()
 int main()
 {
   deal_II_exceptions::disable_abort_on_exception();
+
   std::ofstream logfile("user_data_01/output");
   deallog.attach(logfile);
   deallog.depth_console(0);
index ddcba3194a9cd0d4d5ee97c00bfc659c26583ce2..18b02bdcbdfba382fdbba4fc545be73a3561d08d 100644 (file)
@@ -3,7 +3,6 @@ DEAL::Pointers2D
 DEAL::.....................cells
 DEAL::........................................................faces
 DEAL::lines
-DEAL::ExcPointerIndexClash()
 DEAL::Save2D
 DEAL::Load2D
 DEAL::.....................cells
@@ -23,7 +22,6 @@ DEAL::Pointers3D
 DEAL::.........................................................................cells
 DEAL::..........................................................................................................................................................................................................................................................................................faces
 DEAL::..............................................................................................................................................................................................................................................................................................................................................................................lines
-DEAL::ExcPointerIndexClash()
 DEAL::Save3D
 DEAL::Load3D
 DEAL::.........................................................................cells
index c5079160da4d850a79da8bed57590f64b760fd04..6ce61b972bcb0e3feef3474a17a9992e88d946c8 100644 (file)
@@ -41,8 +41,9 @@ void test(std::ostream& /*out*/)
     {
       tr.execute_coarsening_and_refinement ();
     }
-  catch (...)
+  catch (ExceptionBase &e)
     {
+      deallog << e.get_exc_name() << std::endl;
     }
   
 }
@@ -50,6 +51,8 @@ void test(std::ostream& /*out*/)
 
 int main(int argc, char *argv[])
 {
+  deal_II_exceptions::disable_abort_on_exception();
+
 #ifdef DEAL_II_WITH_MPI
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 #else
@@ -62,16 +65,10 @@ int main(int argc, char *argv[])
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
 
-                                  // we want to catch exceptions
-                                  // instead of aborting the program
-  deal_II_exceptions::disable_abort_on_exception();
-
   deallog.push("2d");
   test<2>(logfile);
   deallog.pop();
   deallog.push("2d");
   test<3>(logfile);
   deallog.pop();
-
-
 }
index e0f69cf13d483158e070c0d86f046124c210503a..1aeeec4dbb71512b5b6252659b22b2e3a9d70ef0 100644 (file)
@@ -43,8 +43,9 @@ void test ()
     {
       m[v.size()];
     }
-  catch (...)
+  catch (ExceptionBase &e)
     {
+      deallog << e.get_exc_name() << std::endl;
     }
 
   deallog << "OK" << std::endl;
@@ -54,6 +55,7 @@ void test ()
 int main()
 {
   deal_II_exceptions::disable_abort_on_exception();
+
   std::ofstream logfile ("block_mask_02/output");
   deallog << std::setprecision (4);
 
index db9d79c13968d7e6be67e85cf651e1391648017c..a5db6fe7f243c4cd634dcc67b04893d3689a5ff6 100644 (file)
@@ -28,6 +28,8 @@
 
 void test ()
 {
+  deal_II_exceptions::disable_abort_on_exception();
+
                                   // test for an initialized mask
   Assert (BlockMask(12,true).n_selected_blocks() == 12,
          ExcInternalError());
@@ -49,8 +51,9 @@ void test ()
       Assert (BlockMask(12,true).n_selected_blocks(13) == 12,
              ExcInternalError());
     }
-  catch (...)
+  catch (ExceptionBase &e)
     {
+      deallog << e.get_exc_name() << std::endl;
     }
   
 }
@@ -58,8 +61,6 @@ void test ()
 
 int main()
 {
-  deal_II_exceptions::disable_abort_on_exception();
-
   std::ofstream logfile ("block_mask_06/output");
   deallog << std::setprecision (4);
 
index 65d3af7b22ad64f28601602ea3034b8ccf244a79..d25c959a0daefea07fee3d4d1d690a307bc1c338 100644 (file)
@@ -50,8 +50,9 @@ void test ()
       Assert (BlockMask(12,true).first_selected_block(13) == 0,
              ExcInternalError());
     }
-  catch (...)
+  catch (ExceptionBase &e)
     {
+      deallog << e.get_exc_name() << std::endl;
     }
   
                                   // as should this: 
@@ -60,8 +61,9 @@ void test ()
       Assert (BlockMask(12,false).first_selected_block() == 0,
              ExcInternalError());
     }
-  catch (...)
+  catch (ExceptionBase &e)
     {
+      deallog << e.get_exc_name() << std::endl;
     }
 }
 
index f814f7a6775691cc3871de74e980816dfe8f7a1c..52389e7b0da0796ee7144425b61f06def39ece28 100644 (file)
@@ -43,8 +43,9 @@ void test ()
     {
       m[v.size()];
     }
-  catch (...)
+  catch (ExceptionBase &e)
     {
+      deallog << e.get_exc_name() << std::endl;
     }
 
   deallog << "OK" << std::endl;
@@ -54,6 +55,7 @@ void test ()
 int main()
 {
   deal_II_exceptions::disable_abort_on_exception();
+
   std::ofstream logfile ("component_mask_02/output");
   deallog << std::setprecision (4);
 
index c95d4ffc921624eb3834f2c47cb6f919e607ae32..9b76ecfe294bb5bc4f4dc86ae10c93c402917da4 100644 (file)
@@ -49,8 +49,9 @@ void test ()
       Assert (ComponentMask(12,true).n_selected_components(13) == 12,
              ExcInternalError());
     }
-  catch (...)
+  catch (ExceptionBase &e)
     {
+      deallog << e.get_exc_name() << std::endl;
     }
   
 }
index 016638bb20c1d9e229052f3c2a049542debdca78..ea254812d36d5a815609c2ee99dcc93382883411 100644 (file)
@@ -50,8 +50,9 @@ void test ()
       Assert (ComponentMask(12,true).first_selected_component(13) == 0,
              ExcInternalError());
     }
-  catch (...)
+  catch (ExceptionBase &e)
     {
+      deallog << e.get_exc_name() << std::endl;
     }
   
                                   // as should this:
@@ -60,8 +61,9 @@ void test ()
       Assert (ComponentMask(12,false).first_selected_component() == 0,
              ExcInternalError());
     }
-  catch (...)
+  catch (ExceptionBase &e)
     {
+      deallog << e.get_exc_name() << std::endl;
     }
 }
 
index a7fb80f3692f96f27fe32051908a1e5edd827a8c..e72c664e2684e0dfecc70844bf8dadf8a490bd0e 100644 (file)
@@ -51,9 +51,10 @@ void test ()
       {
        deallog << fe.block_mask (component_mask) << std::endl;
       }
-    catch (...)
+    catch (ExceptionBase &e)
       {
-      } 
+        deallog << e.get_exc_name() << std::endl;
+      }
   }
 
   deallog << "OK" << std::endl;
index 5826b58e01af666efdb614de987d4c10e66a6484..d6abf8751231e1682e6f0780928bcc2615b87b45 100644 (file)
@@ -47,8 +47,9 @@ void test ()
     {
       fe_collection.n_blocks();
     }
-  catch (...)
+  catch (ExceptionBase &e)
     {
+      deallog << e.get_exc_name() << std::endl;
     }
 
   deallog << "OK" << std::endl;
index 338eb1eef527d89d5dc5caea8642169be082b857..4fd245ced97bd6d0ba5c0f0510c970d4dde45a6b 100644 (file)
@@ -125,14 +125,14 @@ setup_constraints(const DoFHandler<dim>& dof_handler)
     }
 
   deallog << "Closing" << std::endl;
-  deal_II_exceptions::disable_abort_on_exception();
   try
     {
       constraints.close();
     }
-  catch (...)
+  catch (ExceptionBase &e)
     {
-    }  
+      deallog << e.get_exc_name() << std::endl;
+    }
   deallog << "Closed" << std::endl;
 }
 
@@ -157,9 +157,12 @@ run(const FiniteElement<dim>& fe)
 
 int main()
 {
+  deal_II_exceptions::disable_abort_on_exception();
+
   const std::string logname = JobIdentifier::base_name(__FILE__) + std::string("/output");
   std::ofstream logfile(logname.c_str());
   deallog.attach(logfile);
+  deallog.depth_console(0);
   
   FE_Q<2> fe(3);
   run(fe);
index a26fb1519aba1e78fbd293b678bcf73a8336fb30..e096cde3de3f57e2ee31a9cce22fb8b9ba16c8ef 100644 (file)
@@ -48,14 +48,14 @@ run()
   }
 
   deallog << "Closing" << std::endl;
-  deal_II_exceptions::disable_abort_on_exception();
 
   try
     {
       constraints.close();
     }
-  catch (...)
+  catch (ExceptionBase &e)
     {
+      deallog << e.get_exc_name() << std::endl;
     }
   
   deallog << "Closed" << std::endl;
@@ -65,9 +65,12 @@ run()
 
 int main()
 {
+  deal_II_exceptions::disable_abort_on_exception();
+
   const std::string logname = JobIdentifier::base_name(__FILE__) + std::string("/output");
   std::ofstream logfile(logname.c_str());
   deallog.attach(logfile);
+  deallog.depth_console(0);
   
   run();
 }
index a46c5d08a6c174e1976b70b5047d8183fdc2cf74..57a8cb9a7736db6a19fa2995879b131efd795a67 100644 (file)
@@ -52,29 +52,40 @@ void test ()
 
   Assert(!vb.has_ghost_elements(), ExcInternalError());
   Assert(v.has_ghost_elements(), ExcInternalError());
-  
-  deal_II_exceptions::disable_abort_on_exception();
-  try 
+
+  try
     {
       v(0)=1.0;
     }
-  catch (...){}
-  try 
+  catch (ExceptionBase &e)
+    {
+      deallog << e.get_exc_name() << std::endl;
+    }
+  try
+    {
+      v(0)*=2.0;
+    }
+  catch (ExceptionBase &e)
     {
-      v(0)*=2.0;      
+      deallog << e.get_exc_name() << std::endl;
     }
-  catch (...){}
-  try 
+  try
     {
       v=0.0;
     }
-  catch (...){}
-  try 
+  catch (ExceptionBase &e)
     {
-      v+=v;      
+      deallog << e.get_exc_name() << std::endl;
     }
-  catch (...){}
-  
+  try
+    {
+      v+=v;
+    }
+  catch (ExceptionBase &e)
+    {
+      deallog << e.get_exc_name() << std::endl;
+    }
+
                                   // done
   if (myid==0)
     deallog << "OK" << std::endl;
@@ -84,6 +95,8 @@ void test ()
 
 int main (int argc, char **argv)
 {
+  deal_II_exceptions::disable_abort_on_exception();
+
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv);
   unsigned int myid = Utilities::MPI::this_mpi_process (MPI_COMM_WORLD);
 
index 007a77d84805be8ac79252f3432931a6ba1c6d66..bf2037d1ec3a6f89077362024e4a52303748af0e 100644 (file)
@@ -54,21 +54,21 @@ void test ()
 
   Assert (v_tmp.has_ghost_elements(), ExcInternalError());
 
-  deal_II_exceptions::disable_abort_on_exception();
-
   try
     {
       v_tmp.l2_norm();
     }
-  catch (...)
+  catch (ExceptionBase &e)
     {
+      deallog << e.get_exc_name() << std::endl;
     }
   try
     {
       v_tmp(0)=3.0;
     }
-  catch (...)
+  catch (ExceptionBase &e)
     {
+      deallog << e.get_exc_name() << std::endl;
     }
   
   if (Utilities::MPI::this_mpi_process (MPI_COMM_WORLD) == 0)
@@ -79,6 +79,8 @@ void test ()
 
 int main (int argc, char **argv)
 {
+  deal_II_exceptions::disable_abort_on_exception();
+
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv);
 
   unsigned int myid = Utilities::MPI::this_mpi_process (MPI_COMM_WORLD);
index 08eb65c4248f0b9bfa41db8bba8f3053aabbdc14..079ba6dd8fc8a976db41d16e291dafddc1dd2f46 100644 (file)
@@ -52,8 +52,6 @@ void test ()
 
   v_tmp.reinit(v,false,true);
 
-  deal_II_exceptions::disable_abort_on_exception();
-
   bool exc = false;
   double norm;
   try
@@ -62,6 +60,7 @@ void test ()
     }
   catch (TrilinosWrappers::VectorBase::ExcTrilinosError e)
     {
+      deallog << e.get_exc_name() << std::endl;
       exc = true;
     }
   
@@ -79,6 +78,8 @@ void test ()
 
 int main (int argc, char **argv)
 {
+  deal_II_exceptions::disable_abort_on_exception();
+
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv);
 
   unsigned int myid = Utilities::MPI::this_mpi_process (MPI_COMM_WORLD);
index b5cb18da1a15c2bae6d7b44e69f7445c176103fb..d61bccee4632813ae139423c928ac75acaf65730 100644 (file)
@@ -156,10 +156,8 @@ struct DeadlockKiller
              }
          }
        else
-                                          // environment variable is
-                                          // not set, so assume
-                                          // infinite wait time and
-                                          // simply quit this thread
+          // environment variable is not set, so assume infinite wait time
+          // and simply quit this thread
          {
          }
       }

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.