GeometryInfo<dim>::lines_per_face is zero in 1d and 2d, so the comparison
e<GeometryInfo<dim>::lines_per_face
is always false (as expected and intended) but the compiler warns about
this. Work around this by using signed integers.
cell != tria.end(); ++cell)
for (unsigned int f=0; f<GeometryInfo<dim>::faces_per_cell; ++f)
if (cell->face(f)->at_boundary())
- for (unsigned int e=0; e<GeometryInfo<dim>::lines_per_face; ++e)
+ for (signed int e=0; e<static_cast<signed int>(GeometryInfo<dim>::lines_per_face); ++e)
cell->face(f)->line(e)->set_manifold_id
(static_cast<types::manifold_id>(cell->face(f)->line(e)->boundary_id()));
{
cell->face(f)->set_boundary_id(0);
if (dim >= 3)
- for (unsigned int e=0; e<GeometryInfo<dim>::lines_per_face; ++e)
+ for (signed int e=0; e<static_cast<signed int>(GeometryInfo<dim>::lines_per_face); ++e)
cell->face(f)->line(e)->set_boundary_id(0);
}
}
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