]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Reduce the number of steps for high order mappings. 3508/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 9 Nov 2016 00:23:40 +0000 (17:23 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 9 Nov 2016 00:23:40 +0000 (17:23 -0700)
For high order mappings, we too quickly get close to round-off errors, with
tests failing depending on what optimization flags are used. Consequently,
don't use too fine meshes for high order mappings.

tests/mappings/mapping_q_eulerian.cc
tests/mappings/mapping_q_eulerian.output

index e1024240bc301e1a1aeacbe626865ca76229bc79..9293c283c1e35f5d8689376b194b19fa4581db95 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2008 - 2015 by the deal.II authors
+// Copyright (C) 2008 - 2016 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -156,7 +156,7 @@ void MappingTest<dim>::run_test ()
   ConvergenceTable table;
 
   for (unsigned int ref_level = 0;
-       ref_level < 5;
+       ref_level < (degree<4 ? 5 : 3);
        ++ref_level, triangulation.refine_global(1))
     {
 
index a0e140395816876a89e1fb4dd87253fe41d4e614..88fd6ee63684d8f365a45a79cfc92c1356f370da 100644 (file)
@@ -28,6 +28,4 @@ cells dofs    area         error
 1     50   3.14158719 1.7382e-06 -    
 4     162  3.14159263 7.0396e-09 7.95 
 16    578  3.14159265 2.7745e-11 7.99 
-64    2178 3.14159265 1.0362e-13 8.06 
-256   8450 3.14159265 1.0178e-14 3.35 
 DEAL::

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.