]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Finish up.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 8 Apr 2005 21:08:59 +0000 (21:08 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 8 Apr 2005 21:08:59 +0000 (21:08 +0000)
git-svn-id: https://svn.dealii.org/trunk@10447 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/dof_constraints_01x.cc

index 888810aab7d61dfd4258598c38236f0ac9977a5a..fab31aa36b952c6db07ff523f13655dd782c3a6a 100644 (file)
 //----------------------------  dof_constraints_01x.cc  ---------------------------
 
 
-// check DoFConstraints::distribute_local_to_global for matrices
+// check DoFConstraints::distribute_local_to_global for matrices and
+// vectors in the presence of both constraints and boundary
+// values. this proved to be a really tricky can of worms. this test
+// checks things on a rather small domain, the sister test
+// dof_constraints_01y does it on complicated meshes
 
 #include "../tests.h"
 #include <base/function_lib.h>
@@ -144,13 +148,10 @@ void test ()
                                   // boundary nodes are computed in
                                   // different ways, so make sure
                                   // that the boundary values will be
-                                  // correct and then set to the same
-                                  // thing
+                                  // correct
   for (unsigned int i=0; i<dof_handler.n_dofs(); ++i)
     if (boundary_values.find(i) != boundary_values.end())
       {
-       Assert (b(i)/B.diag_element(i) == boundary_values[i], ExcInternalError());
-       Assert (a(i)/A.diag_element(i) == boundary_values[i], ExcInternalError());
        B.diag_element(i) = A.diag_element(i);
        b(i) = a(i);
       }

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.