From 7f69e8ce3db01be9b54d9bf2a618ccb2531c2d24 Mon Sep 17 00:00:00 2001 From: leicht Date: Fri, 9 Feb 2007 09:07:42 +0000 Subject: [PATCH] Due to more quadrature projections we have to increase the tolerance for passing the test. git-svn-id: https://svn.dealii.org/trunk@14452 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/base/quadrature_test.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/base/quadrature_test.cc b/tests/base/quadrature_test.cc index 730c892e6b..5c86d85301 100644 --- a/tests/base/quadrature_test.cc +++ b/tests/base/quadrature_test.cc @@ -168,13 +168,18 @@ check_faces (const std::vector*>& 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; -- 2.39.5