]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Aim at equilibrating cell sizes at the transition from the inner part of the triangul...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 3 Jul 1998 09:12:55 +0000 (09:12 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 3 Jul 1998 09:12:55 +0000 (09:12 +0000)
git-svn-id: https://svn.dealii.org/trunk@435 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/tria.cc

index 5470960a93c746912b5fa1935f9f2c1be6e23a76..ff8cbb822134174efba3270766c0f37729d553da 100644 (file)
@@ -605,7 +605,9 @@ void Triangulation<2>::create_hyper_L (const double a, const double b) {
 template <>
 void Triangulation<2>::create_hyper_ball (const Point<2> &p, const double radius) {
   const unsigned int dim=2;
-  const double a = 1./(1+sqrt(2)/2);         // equilibrate cell sizes
+  const double a = 1./(1+sqrt(2)); // equilibrate cell sizes at transition
+                                  // from the inner part to the radial
+                                  // cells
   const Point<dim> vertices[8] = { p+Point<dim>(-1,-1)*(radius/sqrt(2)),
                                   p+Point<dim>(+1,-1)*(radius/sqrt(2)),
                                   p+Point<dim>(-1,-1)*(radius/sqrt(2)*a),

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.