}
// 2. Lines
- for (unsigned line_number= 0 ; line_number < GeometryInfo<dim>::lines_per_cell ;
+ for (unsigned line_number= 0 ; ((line_number < GeometryInfo<dim>::lines_per_cell) &&
+ (GeometryInfo<dim>::lines_per_cell > 0));
++line_number)
{
unsigned comp_start = 0;
}
// 3. Quads
- for (unsigned quad_number= 0 ; quad_number < GeometryInfo<dim>::quads_per_cell ;
+ for (unsigned quad_number= 0 ; ((quad_number < GeometryInfo<dim>::quads_per_cell) &&
+ (GeometryInfo<dim>::quads_per_cell > 0));
++quad_number)
{
unsigned comp_start = 0;
}
// 4. Hex
- for (unsigned hex_number= 0 ; hex_number < GeometryInfo<dim>::hexes_per_cell ;
+ for (unsigned hex_number= 0 ; ((hex_number < GeometryInfo<dim>::hexes_per_cell) &&
+ (GeometryInfo<dim>::hexes_per_cell > 0));
++hex_number)
{
unsigned comp_start = 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