]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add default argument to the hyperball boundary class.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 28 Apr 1998 13:23:03 +0000 (13:23 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 28 Apr 1998 13:23:03 +0000 (13:23 +0000)
git-svn-id: https://svn.dealii.org/trunk@218 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/grid/tria_boundary.h

index ae9f05541d2e58f1a37062d801244ebe4d823328..f19450537448486e78b8d568b769146deff285b9 100644 (file)
@@ -87,8 +87,8 @@ class StraightBoundary : public Boundary<dim> {
     the point in the middle of the old points onto the ball. The middle is
     defined as the arithmetic mean of the points. 
 
-    The center of the ball and its radius have to be given upon construction of
-    an object of this type.
+    The center of the ball and its radius may be given upon construction of
+    an object of this type. They default to the origin and a radius of 1.0.
 
     This class is derived from #StraightBoundary# rather than from
     #Boundary#, which would seem natural, since this way we can use the
@@ -100,7 +100,7 @@ class HyperBallBoundary : public StraightBoundary<dim> {
                                     /**
                                      * Constructor
                                      */
-    HyperBallBoundary (const Point<dim> p, const double radius) :
+    HyperBallBoundary (const Point<dim> p=Point<dim>(), const double radius=1.0) :
                    center(p), radius(radius) {};
 
                                     /**

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.