From 035c9b2f983164b91c21ad6009f0fcf9af01a710 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 28 Apr 1998 13:23:03 +0000 Subject: [PATCH] Add default argument to the hyperball boundary class. git-svn-id: https://svn.dealii.org/trunk@218 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/grid/tria_boundary.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {}; /** -- 2.39.5