From 97c773518991f80b462645da60edb4fdddb6a449 Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 16 Dec 2010 23:31:18 +0000 Subject: [PATCH] Make the awkward map a returned value, rather than a reference argument. git-svn-id: https://svn.dealii.org/trunk@22987 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-38/step-38.cc | 5 ----- deal.II/include/deal.II/grid/grid_tools.h | 15 +++++++++------ deal.II/source/grid/grid_tools.cc | 12 +++++++----- deal.II/source/grid/grid_tools.inst.in | 14 +++++--------- tests/codim_one/direction_flag_01.cc | 5 +---- tests/codim_one/direction_flag_02.cc | 5 +---- tests/codim_one/extract_boundary_mesh_00.cc | 16 +++++++--------- tests/codim_one/extract_boundary_mesh_01.cc | 4 ++-- tests/codim_one/extract_boundary_mesh_02.cc | 4 ++-- tests/codim_one/extract_boundary_mesh_03.cc | 4 ++-- tests/codim_one/extract_boundary_mesh_04.cc | 6 +++--- tests/codim_one/extract_boundary_mesh_05.cc | 4 ++-- tests/codim_one/extract_boundary_mesh_06.cc | 4 ++-- ...interpolate_boundary_values_1d_closed_ring.cc | 4 ++-- tests/codim_one/normal_vectors_01.cc | 6 +++--- 15 files changed, 48 insertions(+), 60 deletions(-) diff --git a/deal.II/examples/step-38/step-38.cc b/deal.II/examples/step-38/step-38.cc index e5d78044a6..ad2e48152c 100755 --- a/deal.II/examples/step-38/step-38.cc +++ b/deal.II/examples/step-38/step-38.cc @@ -205,10 +205,6 @@ LaplaceBeltrami::~LaplaceBeltrami () template void LaplaceBeltrami::make_mesh () { - std::map::cell_iterator, - typename Triangulation::face_iterator> - surface_to_volume_mapping; - HyperBallBoundary boundary_description; Triangulation volume_mesh; GridGenerator::half_hyper_ball(volume_mesh); @@ -225,7 +221,6 @@ void LaplaceBeltrami::make_mesh () boundary_ids.insert(0); GridTools::extract_boundary_mesh (volume_mesh, triangulation, - surface_to_volume_mapping, boundary_ids); triangulation.refine_global(3); diff --git a/deal.II/include/deal.II/grid/grid_tools.h b/deal.II/include/deal.II/grid/grid_tools.h index 77d682ded0..48dc6e36bb 100644 --- a/deal.II/include/deal.II/grid/grid_tools.h +++ b/deal.II/include/deal.II/grid/grid_tools.h @@ -804,11 +804,15 @@ class GridTools * mesh"). The boundary to be extracted * is specified by a list of * boundary_ids. If none is specified - * the whole boundary will be extracted. + * the whole boundary will be + * extracted. The function is used in + * step-38. * * It also builds a mapping linking the * cells on the surface mesh to the - * corresponding faces on the volume one. + * corresponding faces on the volume + * one. This mapping is the return value + * of the function. * * @note The function builds the surface * mesh by creating a coarse mesh from @@ -878,12 +882,11 @@ class GridTools * curved boundaries. */ template