]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a test by increasing the precision of output. 6276/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 20 Apr 2018 16:14:25 +0000 (10:14 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 20 Apr 2018 16:14:25 +0000 (10:14 -0600)
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.

tests/fe/rt_bubbles_2.cc

index 6b08f32d10f827ebe97f3a3e5a193b7485345070..848161039afc5f7dae042f2301358bf52c9cfa13 100644 (file)
@@ -158,6 +158,7 @@ int
 main()
 {
   initlog();
+  deallog << std::setprecision(7);
   deallog << std::fixed;
 
   for (unsigned int degree=1; degree<4; ++degree)

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.