From: wolf Date: Wed, 23 May 2001 09:46:23 +0000 (+0000) Subject: Work around bugs in gcc2.95: declaring the existence of an explicit specialization... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6dd275d11d43f0be350502d979d693e357258ee;p=dealii-svn.git Work around bugs in gcc2.95: declaring the existence of an explicit specialization kills the possibility to use default args for this function. git-svn-id: https://svn.dealii.org/trunk@4714 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-1/step-1.cc b/deal.II/examples/step-1/step-1.cc index e2ea6d9ad9..01ebbf6981 100644 --- a/deal.II/examples/step-1/step-1.cc +++ b/deal.II/examples/step-1/step-1.cc @@ -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 diff --git a/deal.II/examples/step-2/step-2.cc b/deal.II/examples/step-2/step-2.cc index 02f9183595..29fcc76fed 100644 --- a/deal.II/examples/step-2/step-2.cc +++ b/deal.II/examples/step-2/step-2.cc @@ -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 diff --git a/deal.II/examples/step-6/step-6.cc b/deal.II/examples/step-6/step-6.cc index 45c98acbc9..caeb14a9b1 100644 --- a/deal.II/examples/step-6/step-6.cc +++ b/deal.II/examples/step-6/step-6.cc @@ -858,7 +858,10 @@ void LaplaceProblem::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::run () // any space dimension, // which was not the case // before. - GridGenerator::hyper_ball (triangulation); + GridGenerator::hyper_ball (triangulation, Point(), 1); static const HyperBallBoundary boundary; triangulation.set_boundary (0, boundary);