From 42483edd5de62588345ab0722fe320084401e103 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 10 Apr 2020 11:25:52 -0400 Subject: [PATCH] Minor fixes to get_boundary_ids_01 --- tests/distributed_grids/get_boundary_ids_01.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.39.5