From: Wolfgang Bangerth Date: Fri, 20 Apr 2018 16:14:25 +0000 (-0600) Subject: Fix a test by increasing the precision of output. X-Git-Tag: v9.0.0-rc1~151^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6276%2Fhead;p=dealii.git Fix a test by increasing the precision of output. The test outputs 6 digits, so if there is a difference in the 7th digit that leads to different 6-digit-rounding, then that produces a difference that is exactly at the numdiff threshold and the test fails. Fix this by outputting 7 digits. The difference between the current output and the stored output is then at most one half of the numdiff tolerance, and the test succeeds. --- diff --git a/tests/fe/rt_bubbles_2.cc b/tests/fe/rt_bubbles_2.cc index 6b08f32d10..848161039a 100644 --- a/tests/fe/rt_bubbles_2.cc +++ b/tests/fe/rt_bubbles_2.cc @@ -158,6 +158,7 @@ int main() { initlog(); + deallog << std::setprecision(7); deallog << std::fixed; for (unsigned int degree=1; degree<4; ++degree)