From 82d2ed4082c0e7eb71e3eae2fe7145f1b81c7123 Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Wed, 14 Jan 2015 16:02:45 +0100 Subject: [PATCH] Boundary->Manifold in step-5. --- examples/step-5/step-5.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/step-5/step-5.cc b/examples/step-5/step-5.cc index 1ad804e24d..c80cc74f4e 100644 --- a/examples/step-5/step-5.cc +++ b/examples/step-5/step-5.cc @@ -49,7 +49,7 @@ // We will use a circular domain, and the object describing the boundary of it // comes from this file: -#include +#include // This is C++ ... #include @@ -592,14 +592,14 @@ void Step5::run () // GridIn class to find out what input formats are presently // supported.) - // The grid in the file describes a circle. Therefore we have to use a - // boundary object which tells the triangulation where to put new points on - // the boundary when the grid is refined. This works in the same way as in - // the first example. Note that the HyperBallBoundary constructor takes two - // parameters, the center of the ball and the radius, but that their default - // (the origin and 1.0) are the ones which we would like to use here. - static const HyperBallBoundary boundary; - triangulation.set_boundary (0, boundary); + // The grid in the file describes a circle. Therefore we have to use + // a manifold object which tells the triangulation where to put new + // points on the boundary when the grid is refined. This works in + // the same way as in the first example, but in this case we only + // set the manifold ids of the boundary. + static const SphericalManifold boundary; + triangulation.set_all_manifold_ids_on_boundary(0); + triangulation.set_manifold (0, boundary); for (unsigned int cycle=0; cycle<6; ++cycle) { -- 2.39.5