]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Boundary->Manifold in step-15.
authorLuca Heltai <luca.heltai@sissa.it>
Thu, 15 Jan 2015 16:42:27 +0000 (17:42 +0100)
committerLuca Heltai <luca.heltai@sissa.it>
Thu, 15 Jan 2015 21:45:09 +0000 (22:45 +0100)
examples/step-15/step-15.cc

index 45a76a76aecb3c8d1b129862f8162da560d02138..7682ae4aff27e7e12e382244d219d64a4069db46 100644 (file)
@@ -39,7 +39,7 @@
 #include <deal.II/grid/grid_generator.h>
 #include <deal.II/grid/tria_accessor.h>
 #include <deal.II/grid/tria_iterator.h>
-#include <deal.II/grid/tria_boundary_lib.h>
+#include <deal.II/grid/manifold_lib.h>
 #include <deal.II/grid/grid_refinement.h>
 
 #include <deal.II/dofs/dof_handler.h>
@@ -627,8 +627,9 @@ namespace Step15
     // the origin, created in the same way as shown in step-6. The mesh is
     // globally refined twice followed later on by several adaptive cycles:
     GridGenerator::hyper_ball (triangulation);
-    static const HyperBallBoundary<dim> boundary;
-    triangulation.set_boundary (0, boundary);
+    static const SphericalManifold<dim> boundary;
+    triangulation.set_all_manifold_ids_on_boundary(0);
+    triangulation.set_manifold (0, boundary);
     triangulation.refine_global(2);
 
     // The Newton iteration starts next. During the first step we do not have

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.