These don't compile for me with -Werror.
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;
// 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())
// 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())
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams