From: Daniel Arndt Date: Fri, 10 Apr 2020 15:25:52 +0000 (-0400) Subject: Minor fixes to get_boundary_ids_01 X-Git-Tag: v9.2.0-rc1~252^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9871%2Fhead;p=dealii.git Minor fixes to get_boundary_ids_01 --- diff --git a/tests/distributed_grids/get_boundary_ids_01.cc b/tests/distributed_grids/get_boundary_ids_01.cc index 3020c84b20..aa0ff97e4f 100644 --- a/tests/distributed_grids/get_boundary_ids_01.cc +++ b/tests/distributed_grids/get_boundary_ids_01.cc @@ -14,7 +14,7 @@ // --------------------------------------------------------------------- -// create a tria mesh and copy it +// Test parallel::TriangulationBase::get_boundary_ids() #include @@ -29,7 +29,7 @@ test() parallel::distributed::Triangulation tria(MPI_COMM_WORLD); GridGenerator::subdivided_hyper_cube(tria, 4); - for (auto cell : tria.active_cell_iterators()) + for (auto &cell : tria.active_cell_iterators()) if (cell->is_locally_owned()) for (const unsigned int face : GeometryInfo::face_indices()) { @@ -43,7 +43,7 @@ test() cell->face(face)->set_all_boundary_ids(4); } - for (auto i : tria.get_boundary_ids()) + for (const auto i : tria.get_boundary_ids()) deallog << i << " "; deallog << std::endl; }