]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Boundary->Manifold in step-2.
authorLuca Heltai <luca.heltai@sissa.it>
Wed, 14 Jan 2015 14:54:59 +0000 (15:54 +0100)
committerLuca Heltai <luca.heltai@sissa.it>
Thu, 15 Jan 2015 21:39:12 +0000 (22:39 +0100)
examples/step-2/step-2.cc

index 8c848680f4391a0772933bd95793c90b882858e4..9036bbbe355c7ce0db0b1cb6fb7c3cdcd8c4e00c 100644 (file)
@@ -24,7 +24,7 @@
 #include <deal.II/grid/tria_accessor.h>
 #include <deal.II/grid/tria_iterator.h>
 #include <deal.II/grid/grid_generator.h>
-#include <deal.II/grid/tria_boundary_lib.h>
+#include <deal.II/grid/manifold_lib.h>
 
 // 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)
     {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.