]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fix tests (throw in assert change)
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 15 Feb 2013 22:53:46 +0000 (22:53 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 15 Feb 2013 22:53:46 +0000 (22:53 +0000)
git-svn-id: https://svn.dealii.org/trunk@28415 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/accessor_equality.cc
tests/bits/distorted_cells_07.cc
tests/bits/distorted_cells_07/cmp/generic
tests/bits/distorted_mapped_cells_01.cc
tests/bits/distorted_mapped_cells_01/cmp/generic
tests/bits/distorted_mapped_cells_02.cc
tests/bits/distorted_mapped_cells_02/cmp/generic
tests/bits/sparse_matrix_add_entries_01.cc
tests/bits/sparse_matrix_add_entries_01/cmp/generic

index 4a71b511424bc8731290502dd0e3438e7529843c..0aa09409beed6f12bde610299f59a1af3c70cd73 100644 (file)
@@ -88,8 +88,13 @@ void test ()
   {
     DoFHandler<dim> dof_handler2 (tria);
     dof_handler2.distribute_dofs (fe);
-    Assert (! (dof_handler.begin_active() != dof_handler2.begin_active()),
-            ExcInternalError());
+    try 
+      {
+       (dof_handler.begin_active() != dof_handler2.begin_active());
+      }
+    catch (...)
+      {
+      }
   }
 }
 
index f2486654a36095f8b9914c3110fda4f183694f48..5d65d87f75e9c46a497b3125f0dedf1bee538ad4 100644 (file)
@@ -76,7 +76,13 @@ void check (const unsigned int testcase)
   QGauss<dim> quadrature(2);
   FEValues<dim> fe_values(dummy, quadrature, update_JxW_values);
   // should throw an assertion
-  fe_values.reinit(coarse_grid.begin());
+  try 
+    {
+      fe_values.reinit(coarse_grid.begin());
+    }
+  catch (...)
+    {
+    }
 }
 
 
index 69c4e0c314abbc00eb1a6ca9d28ff3716cd1b415..fcac661a7e632b61693e4cce9da33b3718a125f9 100644 (file)
@@ -1,10 +1,7 @@
 
 DEAL::Twisted cell in 1d
 DEAL::(typename Mapping<dim,spacedim>::ExcDistortedMappedCell(cell->center(), point))
-DEAL::(typename Mapping<dim,spacedim>::ExcDistortedMappedCell(cell->center(), point))
 DEAL::Twisted cell in 2d
 DEAL::(typename Mapping<dim,spacedim>::ExcDistortedMappedCell(cell->center(), point))
-DEAL::(typename Mapping<dim,spacedim>::ExcDistortedMappedCell(cell->center(), point))
 DEAL::Twisted cell in 3d
 DEAL::(typename Mapping<dim,spacedim>::ExcDistortedMappedCell(cell->center(), point))
-DEAL::(typename Mapping<dim,spacedim>::ExcDistortedMappedCell(cell->center(), point))
index dde1385ddc4f35112f6aae7dd0b320ec0252f57d..db272f36908424d1a07a2ff9be49c62f326963d4 100644 (file)
@@ -60,9 +60,16 @@ void test()
     cell = tria.begin_active(), endc = tria.end();
   for ( ; cell != endc; ++cell)
     {
-      fe_val.reinit (cell);
-      for (unsigned int q=0; q<quad.size(); ++q)
-        integral += fe_val.JxW(q);
+      try
+       {
+         fe_val.reinit (cell);
+         for (unsigned int q=0; q<quad.size(); ++q)
+           integral += fe_val.JxW(q);
+       }
+      catch (...)
+       {
+       }
+      
     }
   deallog << "Integral = " << integral << std::endl;
 }
index c8640ad3caa8757274b1ae17e9b9190cffe4d2eb..f3fc57530357076c85df68cc3fb5c656f26f5311 100644 (file)
@@ -1,3 +1,3 @@
 
 DEAL::(typename Mapping<dim,spacedim>::ExcDistortedMappedCell(cell->center(), point))
-DEAL::Integral = -1.0000
+DEAL::Integral = 0
index 2cf6374f6f02ca9ee51e4d72e72ee57d558b6a31..59c73437bfd10ad23364b2965504edbf7cda3753 100644 (file)
@@ -43,9 +43,15 @@ void test()
     cell = tria.begin_active(), endc = tria.end();
   for ( ; cell != endc; ++cell)
     {
-      fe_val.reinit (cell);
+      try{
+       fe_val.reinit (cell);
       for (unsigned int q=0; q<quad.size(); ++q)
         integral += fe_val.JxW(q);
+      }
+      catch (...)
+       {
+       }
+      
     }
   deallog << "Integral = " << integral << std::endl;
 }
index 3c0a20779dac4fc3f7db2c93982f66820ce98d3c..f3fc57530357076c85df68cc3fb5c656f26f5311 100644 (file)
@@ -1,4 +1,3 @@
 
 DEAL::(typename Mapping<dim,spacedim>::ExcDistortedMappedCell(cell->center(), point))
-DEAL::(typename Mapping<dim,spacedim>::ExcDistortedMappedCell(cell->center(), point))
-DEAL::Integral = 0.0757
+DEAL::Integral = 0
index e995b8e9f1258436639759b6141c9022e2fa957e..9e40b81b11c0558ca28afa4bf43bd5db158ab1e6 100644 (file)
@@ -71,8 +71,21 @@ void test ()
   deal_II_exceptions::disable_abort_on_exception();
   for (unsigned int i=0; i<m.m(); ++i)
     values[i] = 0.5*i - 1.5;
-  m.add(0,m.m(),&indices[0], &values[0], false, true);
-  m.add(m.m()-1,m.m(),&indices[0], &values[0], false, true);
+  try
+    {
+      m.add(0,m.m(),&indices[0], &values[0], false, true);
+    }
+  catch (...)
+    {
+    }
+
+  try
+    {
+      m.add(m.m()-1,m.m(),&indices[0], &values[0], false, true);
+    }
+  catch (...)
+    {
+    }
 
   deallog << "OK" << std::endl;
 }
index a914d8019b2b8385eea6330bf354c881497c921c..f1987379eeb4e16e741c01492e8917a53f93079a 100644 (file)
@@ -1,5 +1,4 @@
 
-DEAL::ExcInvalidIndex(row,col_indices[i])
 DEAL::ExcInvalidIndex(row,col_indices[i])
 DEAL::ExcInvalidIndex(row,col_indices[i])
 DEAL::OK

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.