From: bangerth Date: Thu, 16 Dec 2010 23:31:18 +0000 (+0000) Subject: Make the awkward map a returned value, rather than a reference argument. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97c773518991f80b462645da60edb4fdddb6a449;p=dealii-svn.git 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 --- 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