]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use SphericalManifold in step-45. 5920/head
authorDavid Wells <wellsd2@rpi.edu>
Sat, 17 Feb 2018 16:35:13 +0000 (11:35 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 17 Feb 2018 16:36:09 +0000 (11:36 -0500)
examples/step-45/step-45.cc

index a14ff40b1cb517efd0c454777c97adadad0b4c4f..92206961803c958ea7aab719b9fb91954402bfe5 100644 (file)
@@ -48,8 +48,8 @@
 #include <deal.II/lac/block_sparsity_pattern.h>
 
 #include <deal.II/grid/grid_generator.h>
-#include <deal.II/grid/tria_boundary_lib.h>
 #include <deal.II/grid/grid_tools.h>
+#include <deal.II/grid/manifold_lib.h>
 
 #include <deal.II/dofs/dof_renumbering.h>
 #include <deal.II/dofs/dof_tools.h>
@@ -85,7 +85,7 @@ namespace Step45
 
     MPI_Comm                                    mpi_communicator;
 
-    HyperShellBoundary<dim>                     boundary;
+    SphericalManifold<dim>                      manifold;
     parallel::distributed::Triangulation<dim>   triangulation;
     FESystem<dim>                               fe;
     DoFHandler<dim>                             dof_handler;
@@ -350,8 +350,8 @@ namespace Step45
 // parallel::distributed::Triangulation::add_periodicity.
     triangulation.add_periodicity(periodicity_vector);
 
-    triangulation.set_boundary(0, boundary);
-    triangulation.set_boundary(1, boundary);
+    triangulation.set_all_manifold_ids(1);
+    triangulation.set_manifold(1, manifold);
 
     triangulation.refine_global (4-dim);
   }

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.