]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use a higher accuracy for results. Add a comment.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 11 Aug 2006 15:10:44 +0000 (15:10 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 11 Aug 2006 15:10:44 +0000 (15:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@13663 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/dof_tools_03.cc

index 5860810557d14c2327805454a882aa3b072ead98..fee3c0aedec70ec342842b83fe1b143f1420de48 100644 (file)
@@ -29,6 +29,15 @@ template <int dim>
 void
 check_this (const DoFHandler<dim> &dof_handler)
 {
+                                  // use a higher output accuracy for this
+                                  // test. the reason is that many of the
+                                  // constraints are negative powers of 2,
+                                  // which have exact representations with 3
+                                  // or 4 digits of accuracy, but not with
+                                  // the usual 2 digits (for example, 0.375,
+                                  // which sometimes rounds to 0.38 and
+                                  // sometimes to 0.37, depending on how
+                                  // intermediate errors have accumulated)
   deallog.get_file_stream().precision (5);
                                    // don't run this test if hanging
                                    // nodes are not implemented

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.