]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Tests are now fixed
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 25 Oct 2006 00:13:45 +0000 (00:13 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 25 Oct 2006 00:13:45 +0000 (00:13 +0000)
git-svn-id: https://svn.dealii.org/trunk@14077 0785d39b-7218-0410-832d-ea1e28bc413d

tests/umfpack/umfpack_04.cc
tests/umfpack/umfpack_04/cmp/generic
tests/umfpack/umfpack_05.cc
tests/umfpack/umfpack_05/cmp/generic

index 9e80a220b932e4496af84021ce6fad86addb58e9..64826ce3a171530707d06e4339f76ef844e6a610 100644 (file)
@@ -188,6 +188,8 @@ void test ()
   deallog << "relative norm distance = "
          << x.l2_norm() / ub.l2_norm()
          << std::endl;
+  Assert (x.l2_norm() / ub.l2_norm() < 1e-12,
+         ExcInternalError());
 
   deallog << "Block Sparse Factorization" << std::endl;
   umfpackb.factorize(Bb);
@@ -202,6 +204,8 @@ void test ()
   deallog << "relative norm distance = "
          << b.l2_norm() / ubb.l2_norm()
          << std::endl;
+  Assert (b.l2_norm() / ubb.l2_norm() < 1e-12,
+         ExcInternalError());
 }
 
 
index 4135273bdae43306b6ac9a1c4a985ca4107a4e33..42f346d44cacb8213329067f3d605835f5cdcb81 100644 (file)
@@ -28,7 +28,7 @@ DEAL::Number of dofs = 669
 DEAL:cg::Starting value 3.12141
 DEAL:cg::Convergence step 24 value 0
 DEAL:cg::Starting value 3.12141
-DEAL:cg::Convergence step 24 value 0
+DEAL:cg::Convergence step 25 value 0
 DEAL::Sparse Factorization
 DEAL::absolute norms = 13.7931 13.7931
 DEAL::relative norm distance = 0
index 5ef158cb7d5871a34f7fd009d04827bf1eb97a8b..54495c5d3b57435eeb656a9af0a08929100cb21a 100644 (file)
@@ -25,8 +25,6 @@
 #include <lac/sparse_direct.h>
 
 
-
-template <int dim>
 void test ()
 {
   std::vector<unsigned int> size (2,2U);
@@ -56,6 +54,12 @@ void test ()
     ubb(i) = i;
   
   umfpackb.solve(ubb);
+
+  for (unsigned int i=0; i<4; ++i)
+    Assert (std::fabs (ubb(i) - i) < 1e-12,
+           ExcInternalError());
+
+  deallog << "OK" << std::endl;
 }
 
 
@@ -66,7 +70,5 @@ int main ()
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
 
-  test<1> ();
-  test<2> ();
-  test<3> ();
+  test ();
 }
index 4135273bdae43306b6ac9a1c4a985ca4107a4e33..0fd8fc12f0b442283edd8868867114c242b04d11 100644 (file)
@@ -1,37 +1,2 @@
 
-DEAL::1d
-DEAL::Number of dofs = 97
-DEAL:cg::Starting value 0.215517
-DEAL:cg::Convergence step 111 value 0
-DEAL:cg::Starting value 0.215517
-DEAL:cg::Convergence step 111 value 0
-DEAL::Sparse Factorization
-DEAL::absolute norms = 6.45748 6.45748
-DEAL::relative norm distance = 0
-DEAL::Block Sparse Factorization
-DEAL::absolute norms = 6.45748 6.45748
-DEAL::relative norm distance = 0
-DEAL::2d
-DEAL::Number of dofs = 994
-DEAL:cg::Starting value 0.595296
-DEAL:cg::Convergence step 58 value 0
-DEAL:cg::Starting value 0.595296
-DEAL:cg::Convergence step 58 value 0
-DEAL::Sparse Factorization
-DEAL::absolute norms = 10.0596 10.0596
-DEAL::relative norm distance = 0
-DEAL::Block Sparse Factorization
-DEAL::absolute norms = 10.0596 10.0596
-DEAL::relative norm distance = 0
-DEAL::3d
-DEAL::Number of dofs = 669
-DEAL:cg::Starting value 3.12141
-DEAL:cg::Convergence step 24 value 0
-DEAL:cg::Starting value 3.12141
-DEAL:cg::Convergence step 24 value 0
-DEAL::Sparse Factorization
-DEAL::absolute norms = 13.7931 13.7931
-DEAL::relative norm distance = 0
-DEAL::Block Sparse Factorization
-DEAL::absolute norms = 13.7931 13.7931
-DEAL::relative norm distance = 0
+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.