]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Output error instead of throwing an assertion in order to see the output when it...
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 4 Dec 2013 15:47:16 +0000 (15:47 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 4 Dec 2013 15:47:16 +0000 (15:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@31877 0785d39b-7218-0410-832d-ea1e28bc413d

tests/deal.II/assemble_block_matrix_parallel.cc
tests/deal.II/assemble_block_matrix_parallel.output
tests/deal.II/assemble_matrix_parallel.cc
tests/deal.II/assemble_matrix_parallel.output

index 8279d750340643528ac26b26ed1244b8062a40cd..2e20166c550e6c5375c7fe275e0c11520dad7568 100644 (file)
@@ -382,20 +382,14 @@ void LaplaceProblem<dim>::assemble_test ()
 
   test_matrix.add(-1, reference_matrix);
 
+  double frobenius_norm = 0;
   for (unsigned int i=0; i<2; ++i)
     for (unsigned int j=0; j<2; ++j)
-      {
-        const double frobenius_norm = test_matrix.block(i,j).frobenius_norm();
+      frobenius_norm += test_matrix.block(i,j).frobenius_norm();
 
-        // the data should add up exactly (unfortunately, there is some roundoff due
-        // to the cell similarity detection, but there should not be any similarity
-        // for the hypershell geometry)
-        AssertThrow(frobenius_norm == 0., ExcInternalError());
-      }
+  deallog << "log error in matrix norm: " << std::log(frobenius_norm) << std::endl;
   test_rhs.add(-1., reference_rhs);
-  AssertThrow(test_rhs.l2_norm() == 0., ExcInternalError());
-
-  deallog << "OK" << std::endl;
+  deallog << "log error in vector norm: " << std::log(test_rhs.l2_norm()) << std::endl;
 }
 
 
index 43fb2379a9f6a959b108312345bc3201ef2ecdc2..9d2e50eecfbd6234a46dbc312163ed3a26a2ac47 100644 (file)
@@ -1,7 +1,13 @@
 
-DEAL:2d::OK
-DEAL:2d::OK
-DEAL:2d::OK
-DEAL:3d::OK
-DEAL:3d::OK
-DEAL:3d::OK
+DEAL:2d::log error in matrix norm: -inf
+DEAL:2d::log error in vector norm: -inf
+DEAL:2d::log error in matrix norm: -inf
+DEAL:2d::log error in vector norm: -inf
+DEAL:2d::log error in matrix norm: -inf
+DEAL:2d::log error in vector norm: -inf
+DEAL:3d::log error in matrix norm: -inf
+DEAL:3d::log error in vector norm: -inf
+DEAL:3d::log error in matrix norm: -inf
+DEAL:3d::log error in vector norm: -inf
+DEAL:3d::log error in matrix norm: -inf
+DEAL:3d::log error in vector norm: -inf
index 240d03e3ade13613a7be1a27de2ac7543fa6e6b5..e0c511089f530c69108c50dfab5ce87c3d01a507 100644 (file)
@@ -384,11 +384,9 @@ void LaplaceProblem<dim>::assemble_test ()
   // the data should add up exactly (unfortunately, there is some roundoff due
   // to the cell similarity detection, but there should not be any similarity
   // for the hypershell geometry)
-  AssertThrow(frobenius_norm == 0., ExcInternalError());
+  deallog << "log error in matrix norm: " << std::log(frobenius_norm) << std::endl;
   test_rhs.add(-1., reference_rhs);
-  AssertThrow(test_rhs.l2_norm() == 0., ExcInternalError());
-
-  deallog << "OK" << std::endl;
+  deallog << "log error in vector norm: " << std::log(test_rhs.l2_norm()) << std::endl;
 }
 
 
index 43fb2379a9f6a959b108312345bc3201ef2ecdc2..9d2e50eecfbd6234a46dbc312163ed3a26a2ac47 100644 (file)
@@ -1,7 +1,13 @@
 
-DEAL:2d::OK
-DEAL:2d::OK
-DEAL:2d::OK
-DEAL:3d::OK
-DEAL:3d::OK
-DEAL:3d::OK
+DEAL:2d::log error in matrix norm: -inf
+DEAL:2d::log error in vector norm: -inf
+DEAL:2d::log error in matrix norm: -inf
+DEAL:2d::log error in vector norm: -inf
+DEAL:2d::log error in matrix norm: -inf
+DEAL:2d::log error in vector norm: -inf
+DEAL:3d::log error in matrix norm: -inf
+DEAL:3d::log error in vector norm: -inf
+DEAL:3d::log error in matrix norm: -inf
+DEAL:3d::log error in vector norm: -inf
+DEAL:3d::log error in matrix norm: -inf
+DEAL:3d::log error in vector norm: -inf

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.