From 19c87578d8c726223bc727858982c227734a5d92 Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Thu, 15 Jan 2015 17:22:44 +0100 Subject: [PATCH] Boundary->Manifold in step-10. --- examples/step-10/step-10.cc | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/examples/step-10/step-10.cc b/examples/step-10/step-10.cc index bbd3c3e563..94c3b673e5 100644 --- a/examples/step-10/step-10.cc +++ b/examples/step-10/step-10.cc @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include #include #include @@ -77,12 +77,12 @@ namespace Step10 // So first generate a coarse triangulation of the circle and associate a // suitable boundary description to it. Note that the default values of - // the HyperBallBoundary constructor are a center at the origin and a - // radius equals one. + // the SphericalManifold constructor is a center at the origin. Triangulation triangulation; GridGenerator::hyper_ball (triangulation); - static const HyperBallBoundary boundary; - triangulation.set_boundary (0, boundary); + static const SphericalManifold boundary; + triangulation.set_all_manifold_ids_on_boundary(0); + triangulation.set_manifold (0, boundary); // Next generate output for this grid and for a once refined grid. Note // that we have hidden the mesh refinement in the loop header, which might @@ -215,8 +215,9 @@ namespace Step10 Triangulation triangulation; GridGenerator::hyper_ball (triangulation); - static const HyperBallBoundary boundary; - triangulation.set_boundary (0, boundary); + static const SphericalManifold boundary; + triangulation.set_all_manifold_ids_on_boundary (0); + triangulation.set_manifold(0, boundary); const MappingQ mapping (degree); @@ -351,8 +352,9 @@ namespace Step10 Triangulation triangulation; GridGenerator::hyper_ball (triangulation); - static const HyperBallBoundary boundary; - triangulation.set_boundary (0, boundary); + static const SphericalManifold boundary; + triangulation.set_all_manifold_ids_on_boundary (0); + triangulation.set_manifold (0, boundary); const MappingQ mapping (degree); const FE_Q fe (1); -- 2.39.5