Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix two warnings in the test suite. #16280

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/lac/tensor_product_matrix_08.cc
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ do_test()
std::tuple<unsigned int, bool, bool>{0, false, true} // deformed hyper-cube
};

for (const auto setting : settings)
for (const auto &setting : settings)
{
Triangulation<dim> tria;

Expand Down
4 changes: 2 additions & 2 deletions tests/multigrid/constrained_dofs_05.cc
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ check()

// Print faces that connect to coarser DoF
deallog << " Faces neighboring coarser cells:" << std::endl;
for (const auto level_cell : dof_handler.cell_iterators_on_level(level))
for (const auto &level_cell : dof_handler.cell_iterators_on_level(level))
{
// Iterate over all faces
for (const unsigned int i_face : GeometryInfo<dim>::face_indices())
Expand Down Expand Up @@ -128,7 +128,7 @@ check()
// Print faces that have periodic neighbors
deallog << " Faces having periodic neighbors of same level:"
<< std::endl;
for (const auto level_cell : dof_handler.cell_iterators_on_level(level))
for (const auto &level_cell : dof_handler.cell_iterators_on_level(level))
{
// Iterate over all faces
for (const unsigned int i_face : GeometryInfo<dim>::face_indices())
Expand Down