]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Due to more quadrature projections we have to increase the tolerance for passing...
authorleicht <leicht@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 9 Feb 2007 09:07:42 +0000 (09:07 +0000)
committerleicht <leicht@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 9 Feb 2007 09:07:42 +0000 (09:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@14452 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/quadrature_test.cc

index 730c892e6b3ec4a28e4736d2740336c8ba677664..5c86d85301097561d5e3decbd1839580fade2b90 100644 (file)
@@ -168,13 +168,18 @@ check_faces (const std::vector<Quadrature<dim-1>*>& quadratures, const bool sub)
              exact_int = 2 * (sub ? 2:1) / (double) (i+1);
              break;
            case 3:
-             exact_int = 3 * (sub ? 8:2) / (double) (i+1)/(i+1);
+             exact_int = 3 * (sub ? 32:8) / (double) (i+1)/(i+1);
              break;
            }
       
          err = std::fabs(quadrature_int-exact_int);
        }
-      while (err<2e-14);
+                                      // for comparison: use factor 8 in case
+                                      // of dim==3, as we integrate 8 times
+                                      // over the whole surface (all
+                                      // combinations of face_orientation,
+                                      // face_flip and face_rotation)
+      while (err < (dim==3 ? 8 : 1) * 2e-14);
                                       // Uncomment here for testing
       //      deallog << " (Int " << quadrature_int << '-' << exact_int << '=' << err << ")";
       deallog << " is exact for polynomials of degree " << i-1 << std::endl;

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.