Assert (vertex < vertices_per_cell,
ExcIndexRange (vertex, 0, 2));
- const unsigned int vertex_indices[lines_per_cell][2] =
+ static const unsigned int vertex_indices[lines_per_cell][2] =
{ {0, 1}, {1, 2}, {3, 2}, {0, 3} };
return vertex_indices[line][vertex];
Assert (vertex < vertices_per_cell,
ExcIndexRange (vertex, 0, 2));
- const unsigned int vertex_indices[lines_per_cell][2] =
+ static const unsigned int vertex_indices[lines_per_cell][2] =
{ {0, 1}, {1, 2}, {3, 2}, {0, 3},
{4, 5}, {5, 6}, {7, 6}, {4, 7},
{0, 4}, {1, 5}, {2, 6}, {3, 7} };
Assert (face<faces_per_cell, ExcIndexRange(face, 0, faces_per_cell));
Assert (subface<subfaces_per_face, ExcIndexRange(subface, 0, subfaces_per_face));
- const unsigned subcells[faces_per_cell][subfaces_per_face] = {{0,1},
- {1,2},
- {3,2},
- {0,3}};
+ static const unsigned
+ subcells[faces_per_cell][subfaces_per_face] = {{0,1},
+ {1,2},
+ {3,2},
+ {0,3}};
return subcells[face][subface];
}
Assert (face<faces_per_cell, ExcIndexRange(face, 0, faces_per_cell));
Assert (subface<subfaces_per_face, ExcIndexRange(subface, 0, subfaces_per_face));
- const unsigned subcells[faces_per_cell][subfaces_per_face] = {{0, 1, 2, 3},
- {4, 5, 6, 7},
- {0, 1, 5, 4},
- {1, 5, 6, 2},
- {3, 2, 6, 7},
- {0, 4, 7, 3}};
+ static const unsigned
+ subcells[faces_per_cell][subfaces_per_face] = {{0, 1, 2, 3},
+ {4, 5, 6, 7},
+ {0, 1, 5, 4},
+ {1, 5, 6, 2},
+ {3, 2, 6, 7},
+ {0, 4, 7, 3}};
return subcells[face][subface];
}
{
Assert (corner<4, ExcIndexRange(corner,0,4));
- const int corner_convention[4] = { 0,0,1,1 };
+ static const int corner_convention[4] = { 0,0,1,1 };
return line(corner)->vertex_index(corner_convention[corner]);
}