From: Wolfgang Bangerth Date: Tue, 28 Apr 1998 13:23:03 +0000 (+0000) Subject: Add default argument to the hyperball boundary class. X-Git-Tag: v8.0.0~23036 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=035c9b2f983164b91c21ad6009f0fcf9af01a710;p=dealii.git Add default argument to the hyperball boundary class. git-svn-id: https://svn.dealii.org/trunk@218 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/grid/tria_boundary.h b/deal.II/deal.II/include/grid/tria_boundary.h index ae9f05541d..f194505374 100644 --- a/deal.II/deal.II/include/grid/tria_boundary.h +++ b/deal.II/deal.II/include/grid/tria_boundary.h @@ -87,8 +87,8 @@ class StraightBoundary : public Boundary { 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 { /** * Constructor */ - HyperBallBoundary (const Point p, const double radius) : + HyperBallBoundary (const Point p=Point(), const double radius=1.0) : center(p), radius(radius) {}; /**