From d878e40646c27956885a20b5fa745ca14b1edc66 Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 9 Mar 2012 17:26:39 +0000 Subject: [PATCH] Switch to types::boundary/material_id_t from 'unsigned char'. git-svn-id: https://svn.dealii.org/trunk@25227 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-31/step-31.cc | 2 +- deal.II/examples/step-32/step-32.cc | 2 +- deal.II/examples/step-35/step-35.cc | 8 +++---- deal.II/examples/step-38/step-38.cc | 35 ++++++++++++++++------------- 4 files changed, 25 insertions(+), 22 deletions(-) diff --git a/deal.II/examples/step-31/step-31.cc b/deal.II/examples/step-31/step-31.cc index 20379ce8ce..de61b654cc 100644 --- a/deal.II/examples/step-31/step-31.cc +++ b/deal.II/examples/step-31/step-31.cc @@ -1085,7 +1085,7 @@ namespace Step31 stokes_constraints.clear (); DoFTools::make_hanging_node_constraints (stokes_dof_handler, stokes_constraints); - std::set no_normal_flux_boundaries; + std::set no_normal_flux_boundaries; no_normal_flux_boundaries.insert (0); VectorTools::compute_no_normal_flux_constraints (stokes_dof_handler, 0, no_normal_flux_boundaries, diff --git a/deal.II/examples/step-32/step-32.cc b/deal.II/examples/step-32/step-32.cc index 04070d8a7a..cb1be80a12 100644 --- a/deal.II/examples/step-32/step-32.cc +++ b/deal.II/examples/step-32/step-32.cc @@ -2554,7 +2554,7 @@ namespace Step32 stokes_constraints, velocity_mask); - std::set no_normal_flux_boundaries; + std::set no_normal_flux_boundaries; no_normal_flux_boundaries.insert (1); VectorTools::compute_no_normal_flux_constraints (stokes_dof_handler, 0, no_normal_flux_boundaries, diff --git a/deal.II/examples/step-35/step-35.cc b/deal.II/examples/step-35/step-35.cc index 3e087afd71..4b4e7ca9e7 100644 --- a/deal.II/examples/step-35/step-35.cc +++ b/deal.II/examples/step-35/step-35.cc @@ -431,9 +431,9 @@ namespace Step35 const double dt; const double t_0, T, Re; - EquationData::Velocity vel_exact; - std::map boundary_values; - std::vector boundary_indicators; + EquationData::Velocity vel_exact; + std::map boundary_values; + std::vector boundary_indicators; Triangulation triangulation; @@ -1118,7 +1118,7 @@ namespace Step35 vel_exact.set_component(d); boundary_values.clear(); - for (std::vector::const_iterator + for (std::vector::const_iterator boundaries = boundary_indicators.begin(); boundaries != boundary_indicators.end(); ++boundaries) diff --git a/deal.II/examples/step-38/step-38.cc b/deal.II/examples/step-38/step-38.cc index c393ba37b2..f64c443043 100644 --- a/deal.II/examples/step-38/step-38.cc +++ b/deal.II/examples/step-38/step-38.cc @@ -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, static, - // 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, + // static, 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 volume_mesh; GridGenerator::half_hyper_ball(volume_mesh); - std::set boundary_ids; + std::set boundary_ids; boundary_ids.insert (0); GridTools::extract_boundary_mesh (volume_mesh, triangulation, -- 2.39.5