From f0693acf57c29848b3a4a429f9e77acd2560b2c3 Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 11 Aug 2006 15:10:44 +0000 Subject: [PATCH] Use a higher accuracy for results. Add a comment. git-svn-id: https://svn.dealii.org/trunk@13663 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/dof_tools_03.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/bits/dof_tools_03.cc b/tests/bits/dof_tools_03.cc index 5860810557..fee3c0aede 100644 --- a/tests/bits/dof_tools_03.cc +++ b/tests/bits/dof_tools_03.cc @@ -29,6 +29,15 @@ template void check_this (const DoFHandler &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 -- 2.39.5