]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Switch to types::boundary/material_id_t from 'unsigned char'.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 9 Mar 2012 17:26:39 +0000 (17:26 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 9 Mar 2012 17:26:39 +0000 (17:26 +0000)
git-svn-id: https://svn.dealii.org/trunk@25227 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-31/step-31.cc
deal.II/examples/step-32/step-32.cc
deal.II/examples/step-35/step-35.cc
deal.II/examples/step-38/step-38.cc

index 20379ce8ce68bc7545ac91b8cfc5b45386388b9f..de61b654cce48d394e665fc0382ead15dc390a82 100644 (file)
@@ -1085,7 +1085,7 @@ namespace Step31
       stokes_constraints.clear ();
       DoFTools::make_hanging_node_constraints (stokes_dof_handler,
                                               stokes_constraints);
-      std::set<unsigned char> no_normal_flux_boundaries;
+      std::set<types::boundary_id_t> no_normal_flux_boundaries;
       no_normal_flux_boundaries.insert (0);
       VectorTools::compute_no_normal_flux_constraints (stokes_dof_handler, 0,
                                                       no_normal_flux_boundaries,
index 04070d8a7a1d8a11d04280d18b953c50d602594f..cb1be80a12a604a18b8b240e37f4e8ae13ef829a 100644 (file)
@@ -2554,7 +2554,7 @@ namespace Step32
                                                stokes_constraints,
                                                velocity_mask);
 
-      std::set<unsigned char> no_normal_flux_boundaries;
+      std::set<types::boundary_id_t> no_normal_flux_boundaries;
       no_normal_flux_boundaries.insert (1);
       VectorTools::compute_no_normal_flux_constraints (stokes_dof_handler, 0,
                                                       no_normal_flux_boundaries,
index 3e087afd7131c56fdf3fb42a3c0f008acdb16825..4b4e7ca9e723d1800f3eb944475200c0d92d4a43 100644 (file)
@@ -431,9 +431,9 @@ namespace Step35
       const double       dt;
       const double       t_0, T, Re;
 
-      EquationData::Velocity<dim>    vel_exact;
-      std::map<unsigned int, double> boundary_values;
-      std::vector<unsigned char>     boundary_indicators;
+      EquationData::Velocity<dim>       vel_exact;
+      std::map<unsigned int, double>    boundary_values;
+      std::vector<types::boundary_id_t> boundary_indicators;
 
       Triangulation<dim> triangulation;
 
@@ -1118,7 +1118,7 @@ namespace Step35
 
        vel_exact.set_component(d);
        boundary_values.clear();
-       for (std::vector<unsigned char>::const_iterator
+       for (std::vector<types::boundary_id_t>::const_iterator
               boundaries = boundary_indicators.begin();
             boundaries != boundary_indicators.end();
             ++boundaries)
index c393ba37b2cb7f0cd220a252a9e5391d32ea5ace..f64c4430439e4a52dfa1f1f39a3ceae48331e845 100644 (file)
@@ -344,25 +344,28 @@ namespace Step38
                                   // There is one point that needs to be
                                   // mentioned. In order to refine a surface
                                   // mesh appropriately if the manifold is
-                                  // curved (similarly to refining the faces of
-                                  // cells that are adjacent to a curved
+                                  // curved (similarly to refining the faces
+                                  // of cells that are adjacent to a curved
                                   // boundary), the triangulation has to have
-                                  // an object attached to it that described
+                                  // an object attached to it that describes
                                   // where new vertices should be located. If
                                   // you don't attach such a boundary object,
                                   // they will be located halfway between
-                                  // existing vertices; this is appropriate if
-                                  // you have a domain with straight boundaries
-                                  // (e.g. a polygon) but not when, as here,
-                                  // the manifold has curvature. So for things
-                                  // to work properly, we need to attach a
-                                  // manifold object to our (surface)
-                                  // triangulation. We create such an object
-                                  // (with indefinite, <code>static</code>,
-                                  // lifetime) at the top of the function and
-                                  // attach it to the triangulation for all
-                                  // cells with boundary indicator zero that
-                                  // will be created henceforth.
+                                  // existing vertices; this is appropriate
+                                  // if you have a domain with straight
+                                  // boundaries (e.g. a polygon) but not
+                                  // when, as here, the manifold has
+                                  // curvature. So for things to work
+                                  // properly, we need to attach a manifold
+                                  // object to our (surface) triangulation,
+                                  // in much the same way as we've already
+                                  // done in 1d for the boundary. We create
+                                  // such an object (with indefinite,
+                                  // <code>static</code>, lifetime) at the
+                                  // top of the function and attach it to the
+                                  // triangulation for all cells with
+                                  // boundary indicator zero that will be
+                                  // created henceforth.
                                   //
                                   // The final step in creating the mesh is to
                                   // refine it a number of times. The rest of
@@ -378,7 +381,7 @@ namespace Step38
       Triangulation<spacedim> volume_mesh;
       GridGenerator::half_hyper_ball(volume_mesh);
 
-      std::set<unsigned char> boundary_ids;
+      std::set<types::boundary_id_t> boundary_ids;
       boundary_ids.insert (0);
 
       GridTools::extract_boundary_mesh (volume_mesh, triangulation,

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.