From: Luca Heltai Date: Thu, 15 Jan 2015 16:22:44 +0000 (+0100) Subject: Boundary->Manifold in step-10. X-Git-Tag: v8.3.0-rc1~532^2~6 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19c87578d8c726223bc727858982c227734a5d92;p=dealii.git Boundary->Manifold in step-10. --- 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);