]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
more accuracy for transformation
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 11 Dec 2011 05:47:15 +0000 (05:47 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 11 Dec 2011 05:47:15 +0000 (05:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@24818 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/fe/mapping_q1.cc

index d12b18d11860c9cccdf4a148dfbcd2c5ccb89fae..457da40bfd2e16c86cc07303489577df2da70667 100644 (file)
@@ -1518,8 +1518,8 @@ transform_real_to_unit_cell_internal
   Point<spacedim> p_real(transform_unit_to_real_cell_internal(mdata));
   Point<spacedim> f = p_real-p;
 
-  const double eps = 1.e-8*cell->diameter();
-  const unsigned int loop_limit = 10;
+  const double eps = 1.e-12*cell->diameter();
+  const unsigned int loop_limit = 50;
   
   unsigned int loop=0;
   while (f.square()>eps*eps && loop++<loop_limit)
@@ -1592,7 +1592,7 @@ transform_real_to_unit_cell_internal
                                   // Here we check that in the last
                                   // execution of while the first
                                   // condition was already wrong,
-                                  // menaing the residual was below
+                                  // meaning the residual was below
                                   // eps. Only if the first condition
                                   // failed, loop will have been
                                   // increased and tested, and thus

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.