]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Work around bugs in gcc2.95: declaring the existence of an explicit specialization...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 23 May 2001 09:46:23 +0000 (09:46 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 23 May 2001 09:46:23 +0000 (09:46 +0000)
git-svn-id: https://svn.dealii.org/trunk@4714 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-1/step-1.cc
deal.II/examples/step-2/step-2.cc
deal.II/examples/step-6/step-6.cc

index e2ea6d9ad935ab383a460b626720b053a905d2be..01ebbf69811431e5d344d8447ddfb1826cb107a0 100644 (file)
@@ -95,14 +95,16 @@ void second_grid ()
                                    // point (1,0), and inner and outer
                                    // radius shall be 0.5 and 1. The
                                    // number of circumferentical cells
-                                   // will be adjusted automatically
-                                   // by this function (in this case,
-                                   // there will be 10)
+                                   // could be adjusted automatically
+                                   // by this function, but we choose
+                                   // to set it explicitely as the
+                                   // last argument
   const Point<2> center (1,0);
   const double inner_radius = 0.5,
                outer_radius = 1.0;
   GridGenerator::hyper_shell (triangulation,
-                              center, inner_radius, outer_radius);
+                              center, inner_radius, outer_radius,
+                             10);
                                    // By default, the triangulation
                                    // assumes that all boundaries are
                                    // straight and given by the cells
index 02f9183595de140dc4d67c6322beeeb01021fa00..29fcc76fedd1b1a254fb7db762d9f11942980ab3 100644 (file)
@@ -71,7 +71,7 @@ void make_grid (Triangulation<2> &triangulation)
   const double inner_radius = 0.5,
               outer_radius = 1.0;
   GridGenerator::hyper_shell (triangulation,
-                             center, inner_radius, outer_radius);
+                             center, inner_radius, outer_radius, 10);
 
                                   // This is the single difference to
                                   // the respetive function in the
index 45c98acbc99d1ba7fe7ce5327d941e4b6c07d2a4..caeb14a9b1a90b849127b591877f4fae2941c738 100644 (file)
@@ -858,7 +858,10 @@ void LaplaceProblem<dim>::run ()
                                           // circle, which is why we
                                           // have to provide a
                                           // suitable boundary object
-                                          // as well.
+                                          // as well. We place the
+                                          // center of the circle at
+                                          // the origin and have the
+                                          // radius be one.
                                           //
                                           // You will notice by
                                           // looking at the coarse
@@ -874,7 +877,7 @@ void LaplaceProblem<dim>::run ()
                                           // any space dimension,
                                           // which was not the case
                                           // before.
-         GridGenerator::hyper_ball (triangulation);
+         GridGenerator::hyper_ball (triangulation, Point<dim>(), 1);
 
          static const HyperBallBoundary<dim> boundary;
          triangulation.set_boundary (0, boundary);

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.