From aa882cd4b501018f5a0cd98820eefa98d08587e1 Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Wed, 14 Jan 2015 15:54:59 +0100 Subject: [PATCH] Boundary->Manifold in step-2. --- examples/step-2/step-2.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/step-2/step-2.cc b/examples/step-2/step-2.cc index 8c848680f4..9036bbbe35 100644 --- a/examples/step-2/step-2.cc +++ b/examples/step-2/step-2.cc @@ -24,7 +24,7 @@ #include #include #include -#include +#include // However, the next file is new. We need this include file for the // association of degrees of freedom ("DoF"s) to vertices, lines, and cells: @@ -71,8 +71,8 @@ using namespace dealii; // thing we would like to comment on is this: // // Since we want to export the triangulation through this function's -// parameter, we need to make sure that the boundary object lives at least as -// long as the triangulation does. However, in step-1, the boundary object is +// parameter, we need to make sure that the manifold object lives at least as +// long as the triangulation does. However, in step-1, the manifold object is // a local variable, and it would be deleted at the end of the function, which // is too early. We avoid the problem by declaring it 'static' which makes // sure that the object is initialized the first time control the program @@ -87,8 +87,9 @@ void make_grid (Triangulation<2> &triangulation) center, inner_radius, outer_radius, 10); - static const HyperShellBoundary<2> boundary_description(center); - triangulation.set_boundary (0, boundary_description); + static const SphericalManifold<2> manifold_description(center); + triangulation.set_all_manifold_ids(0); + triangulation.set_manifold (0, manifold_description); for (unsigned int step=0; step<5; ++step) { -- 2.39.5