unsigned int
n_entities(const unsigned int d) const override
{
- static std::array<unsigned int, 3> table = {2, 1};
+ static std::array<unsigned int, 2> table = {{2, 1}};
return table[d];
}
};
{
if (d == 2)
{
- static const std::array<unsigned int, 3> table = {0, 1, 2};
+ static const std::array<unsigned int, 3> table = {{0, 1, 2}};
AssertDimension(e, 0);
if (d == 1)
{
static const std::array<std::array<unsigned int, 2>, 3> table = {
- {{0, 1}, {1, 2}, {2, 0}}};
+ {{{0, 1}}, {{1, 2}}, {{2, 0}}}};
return {table[e]};
}
unsigned int
n_entities(const unsigned int d) const override
{
- static std::array<unsigned int, 3> table = {3, 3, 1};
+ static std::array<unsigned int, 3> table = {{3, 3, 1}};
return table[d];
}
};
{
if (d == 2)
{
- static const std::array<unsigned int, 4> table = {0, 1, 2, 3};
+ static const std::array<unsigned int, 4> table = {{0, 1, 2, 3}};
AssertDimension(e, 0);
if (d == 1)
{
static const std::array<std::array<unsigned int, 2>, 4> table = {
- {{0, 2}, {1, 3}, {0, 1}, {2, 3}}};
+ {{{0, 2}}, {{1, 3}}, {{0, 1}}, {{2, 3}}}};
return {table[e]};
}
unsigned int
n_entities(const unsigned int d) const override
{
- static std::array<unsigned int, 3> table = {4, 4, 1};
+ static std::array<unsigned int, 3> table = {{4, 4, 1}};
return table[d];
}
};
{
if (d == 3)
{
- static const std::array<unsigned int, 4> table = {0, 1, 2, 3};
+ static const std::array<unsigned int, 4> table = {{0, 1, 2, 3}};
AssertDimension(e, 0);
if (d == 2)
{
static const std::array<std::array<unsigned int, 3>, 4> table = {
- {{0, 1, 2}, {1, 0, 3}, {0, 2, 3}, {2, 1, 3}}};
+ {{{0, 1, 2}}, {{1, 0, 3}}, {{0, 2, 3}}, {{2, 1, 3}}}};
return {table[e]};
}
if (d == 1)
{
static const std::array<std::array<unsigned int, 2>, 6> table = {
- {{0, 1}, {1, 2}, {2, 0}, {0, 3}, {1, 3}, {2, 3}}};
+ {{{0, 1}}, {{1, 2}}, {{2, 0}}, {{0, 3}}, {{1, 3}}, {{2, 3}}}};
return {table[e]};
}
unsigned int
n_entities(const unsigned int d) const override
{
- static std::array<unsigned int, 4> table = {4, 6, 4, 1};
+ static std::array<unsigned int, 4> table = {{4, 6, 4, 1}};
return table[d];
}
const unsigned int face) const override
{
const static std::array<std::array<unsigned int, 3>, 4> table = {
- {{0, 1, 2}, {0, 3, 4}, {2, 5, 3}, {1, 4, 5}}};
+ {{{0, 1, 2}}, {{0, 3, 4}}, {{2, 5, 3}}, {{1, 4, 5}}}};
return table[face][line];
}
const unsigned int face) const override
{
const static std::array<std::array<std::array<unsigned int, 2>, 3>, 4>
- table = {{{{{0, 1}, {1, 2}, {2, 0}}},
- {{{1, 0}, {0, 3}, {3, 1}}},
- {{{0, 2}, {2, 3}, {3, 0}}},
- {{{2, 1}, {1, 3}, {3, 2}}}}};
+ table = {{{{{{0, 1}}, {{1, 2}}, {{2, 0}}}},
+ {{{{1, 0}}, {{0, 3}}, {{3, 1}}}},
+ {{{{0, 2}}, {{2, 3}}, {{3, 0}}}},
+ {{{{2, 1}}, {{1, 3}}, {{3, 2}}}}}};
return table[face][line];
}
{
if (d == 3)
{
- static const std::array<unsigned int, 5> table = {0, 1, 2, 3, 4};
+ static const std::array<unsigned int, 5> table = {{0, 1, 2, 3, 4}};
AssertDimension(e, 0);
{
if (e == 0)
{
- static const std::array<unsigned int, 4> table = {0, 1, 2, 3};
+ static const std::array<unsigned int, 4> table = {{0, 1, 2, 3}};
return {table};
}
static const std::array<std::array<unsigned int, 3>, 4> table = {
- {{0, 2, 4}, {3, 1, 4}, {1, 0, 4}, {2, 3, 4}}};
+ {{{0, 2, 4}}, {{3, 1, 4}}, {{1, 0, 4}}, {{2, 3, 4}}}};
return {table[e - 1]};
}
if (d == 1)
{
static const std::array<std::array<unsigned int, 2>, 8> table = {
- {{0, 2}, {1, 3}, {0, 1}, {2, 3}, {0, 4}, {1, 4}, {2, 4}, {3, 4}}};
+ {{{0, 2}},
+ {{1, 3}},
+ {{0, 1}},
+ {{2, 3}},
+ {{0, 4}},
+ {{1, 4}},
+ {{2, 4}},
+ {{3, 4}}}};
return {table[e]};
}
unsigned int
n_entities(const unsigned int d) const override
{
- static std::array<unsigned int, 4> table = {5, 8, 5, 1};
+ static std::array<unsigned int, 4> table = {{5, 8, 5, 1}};
return table[d];
}
const unsigned int face) const override
{
const static std::array<std::array<unsigned int, 4>, 5> table = {
- {{0, 1, 2, 3},
- {0, 6, 4, numbers::invalid_unsigned_int},
- {1, 5, 7, numbers::invalid_unsigned_int},
- {2, 4, 5, numbers::invalid_unsigned_int},
- {3, 7, 6, numbers::invalid_unsigned_int}}};
+ {{{0, 1, 2, 3}},
+ {{0, 6, 4, numbers::invalid_unsigned_int}},
+ {{1, 5, 7, numbers::invalid_unsigned_int}},
+ {{2, 4, 5, numbers::invalid_unsigned_int}},
+ {{3, 7, 6, numbers::invalid_unsigned_int}}}};
return table[face][line];
}
static const unsigned int X = static_cast<unsigned int>(-1);
const static std::array<std::array<std::array<unsigned int, 2>, 4>, 5>
- table = {{{{{0, 2}, {1, 3}, {0, 1}, {2, 3}}},
- {{{0, 2}, {2, 4}, {4, 0}, {X, X}}},
- {{{3, 1}, {1, 4}, {4, 3}, {X, X}}},
- {{{1, 0}, {0, 4}, {4, 1}, {X, X}}},
- {{{2, 3}, {3, 4}, {4, 2}, {X, X}}}}};
+ table = {{{{{{0, 2}}, {{1, 3}}, {{0, 1}}, {{2, 3}}}},
+ {{{{0, 2}}, {{2, 4}}, {{4, 0}}, {{X, X}}}},
+ {{{{3, 1}}, {{1, 4}}, {{4, 3}}, {{X, X}}}},
+ {{{{1, 0}}, {{0, 4}}, {{4, 1}}, {{X, X}}}},
+ {{{{2, 3}}, {{3, 4}}, {{4, 2}}, {{X, X}}}}}};
return table[face][line];
}
{
if (d == 3)
{
- static const std::array<unsigned int, 6> table = {0, 1, 2, 3, 4, 5};
+ static const std::array<unsigned int, 6> table = {
+ {0, 1, 2, 3, 4, 5}};
AssertDimension(e, 0);
if (e == 0 || e == 1)
{
static const std::array<std::array<unsigned int, 3>, 2> table =
- {{{1, 0, 2}, {3, 4, 5}}};
+ {{{{1, 0, 2}}, {{3, 4, 5}}}};
return {table[e]};
}
static const std::array<std::array<unsigned int, 4>, 3> table = {
- {{0, 1, 3, 4}, {1, 2, 4, 5}, {2, 0, 5, 3}}};
+ {{{0, 1, 3, 4}}, {{1, 2, 4, 5}}, {{2, 0, 5, 3}}}};
return {table[e - 2]};
}
if (d == 1)
{
static const std::array<std::array<unsigned int, 2>, 9> table = {
- {{0, 1},
- {1, 2},
- {2, 0},
- {3, 4},
- {4, 5},
- {5, 3},
- {0, 3},
- {1, 4},
- {2, 5}}};
+ {{{0, 1}},
+ {{1, 2}},
+ {{2, 0}},
+ {{3, 4}},
+ {{4, 5}},
+ {{5, 3}},
+ {{0, 3}},
+ {{1, 4}},
+ {{2, 5}}}};
return {table[e]};
}
unsigned int
n_entities(const unsigned int d) const override
{
- static std::array<unsigned int, 4> table = {6, 9, 5, 1};
+ static std::array<unsigned int, 4> table = {{6, 9, 5, 1}};
return table[d];
}
static const unsigned int X = static_cast<unsigned int>(-1);
const static std::array<std::array<unsigned int, 4>, 5> table = {
- {{0, 2, 1, X},
- {3, 4, 5, X},
- {6, 7, 0, 3},
- {7, 8, 1, 4},
- {8, 6, 5, 2}}};
+ {{{0, 2, 1, X}},
+ {{3, 4, 5, X}},
+ {{6, 7, 0, 3}},
+ {{7, 8, 1, 4}},
+ {{8, 6, 5, 2}}}};
return table[face][line];
}
static const unsigned int X = static_cast<unsigned int>(-1);
const static std::array<std::array<std::array<unsigned int, 2>, 4>, 5>
- table = {{{{{1, 0}, {0, 2}, {2, 1}, {X, X}}},
- {{{3, 4}, {4, 5}, {5, 3}, {X, X}}},
- {{{0, 3}, {1, 4}, {0, 1}, {3, 4}}},
- {{{1, 4}, {2, 5}, {1, 2}, {4, 5}}},
- {{{2, 5}, {0, 3}, {2, 0}, {5, 3}}}}};
+ table = {{{{{{1, 0}}, {{0, 2}}, {{2, 1}}, {{X, X}}}},
+ {{{{3, 4}}, {{4, 5}}, {{5, 3}}, {{X, X}}}},
+ {{{{0, 3}}, {{1, 4}}, {{0, 1}}, {{3, 4}}}},
+ {{{{1, 4}}, {{2, 5}}, {{1, 2}}, {{4, 5}}}},
+ {{{{2, 5}}, {{0, 3}}, {{2, 0}}, {{5, 3}}}}}};
return table[face][line];
}
if (d == 3)
{
static const std::array<unsigned int, 8> table = {
- 0, 1, 2, 3, 4, 5, 6, 7};
+ {0, 1, 2, 3, 4, 5, 6, 7}};
AssertDimension(e, 0);
if (d == 2)
{
static const std::array<std::array<unsigned int, 4>, 6> table = {
- {{0, 2, 4, 6},
- {1, 3, 5, 7},
- {0, 4, 1, 5},
- {2, 6, 3, 7},
- {0, 1, 2, 3},
- {4, 5, 6, 7}}};
+ {{{0, 2, 4, 6}},
+ {{1, 3, 5, 7}},
+ {{0, 4, 1, 5}},
+ {{2, 6, 3, 7}},
+ {{0, 1, 2, 3}},
+ {{4, 5, 6, 7}}}};
return {table[e]};
}
if (d == 1)
{
static const std::array<std::array<unsigned int, 2>, 12> table = {
- {{0, 2},
- {1, 3},
- {0, 1},
- {2, 3},
- {4, 6},
- {5, 7},
- {4, 5},
- {6, 7},
- {0, 4},
- {1, 5},
- {2, 6},
- {3, 7}}};
+ {{{0, 2}},
+ {{1, 3}},
+ {{0, 1}},
+ {{2, 3}},
+ {{4, 6}},
+ {{5, 7}},
+ {{4, 5}},
+ {{6, 7}},
+ {{0, 4}},
+ {{1, 5}},
+ {{2, 6}},
+ {{3, 7}}}};
return {table[e]};
}
unsigned int
n_entities(const unsigned int d) const override
{
- static std::array<unsigned int, 4> table = {8, 12, 6, 1};
+ static std::array<unsigned int, 4> table = {{8, 12, 6, 1}};
return table[d];
}
const unsigned int face) const override
{
const static std::array<std::array<unsigned int, 4>, 6> table = {
- {{8, 10, 0, 4},
- {9, 11, 1, 5},
- {2, 6, 8, 9},
- {3, 7, 10, 11},
- {0, 1, 2, 3},
- {4, 5, 6, 7}}};
+ {{{8, 10, 0, 4}},
+ {{9, 11, 1, 5}},
+ {{2, 6, 8, 9}},
+ {{3, 7, 10, 11}},
+ {{0, 1, 2, 3}},
+ {{4, 5, 6, 7}}}};
return table[face][line];
}
const unsigned int face) const override
{
const static std::array<std::array<std::array<unsigned int, 2>, 4>, 6>
- table = {{{{{0, 4}, {2, 6}, {0, 2}, {4, 6}}},
- {{{1, 5}, {3, 7}, {1, 3}, {5, 7}}},
- {{{0, 1}, {4, 5}, {0, 4}, {1, 5}}},
- {{{2, 3}, {6, 7}, {2, 6}, {3, 7}}},
- {{{0, 2}, {1, 3}, {0, 1}, {2, 3}}},
- {{{4, 6}, {5, 7}, {4, 5}, {6, 7}}}}};
+ table = {{{{{{0, 4}}, {{2, 6}}, {{0, 2}}, {{4, 6}}}},
+ {{{{1, 5}}, {{3, 7}}, {{1, 3}}, {{5, 7}}}},
+ {{{{0, 1}}, {{4, 5}}, {{0, 4}}, {{1, 5}}}},
+ {{{{2, 3}}, {{6, 7}}, {{2, 6}}, {{3, 7}}}},
+ {{{{0, 2}}, {{1, 3}}, {{0, 1}}, {{2, 3}}}},
+ {{{{4, 6}}, {{5, 7}}, {{4, 5}}, {{6, 7}}}}}};
return table[face][line];
}
{
if (entity_type == ReferenceCell::Type::Line)
{
- const std::array<T, 2> i{vertices_0[0], vertices_0[1]};
- const std::array<T, 3> j{vertices_1[0], vertices_1[1]};
+ const std::array<T, 2> i{{vertices_0[0], vertices_0[1]}};
+ const std::array<T, 3> j{{vertices_1[0], vertices_1[1]}};
// line_orientation=true
if (i == std::array<T, 2>{{j[0], j[1]}})
}
else if (entity_type == ReferenceCell::Type::Tri)
{
- const std::array<T, 3> i{vertices_0[0], vertices_0[1], vertices_0[2]};
- const std::array<T, 3> j{vertices_1[0], vertices_1[1], vertices_1[2]};
+ const std::array<T, 3> i{
+ {vertices_0[0], vertices_0[1], vertices_0[2]}};
+ const std::array<T, 3> j{
+ {vertices_1[0], vertices_1[1], vertices_1[2]}};
// face_orientation=true, face_rotation=false, face_flip=false
if (i == std::array<T, 3>{{j[0], j[1], j[2]}})
}
else if (entity_type == ReferenceCell::Type::Quad)
{
- const std::array<T, 4> i{vertices_0[0],
- vertices_0[1],
- vertices_0[2],
- vertices_0[3]};
- const std::array<T, 4> j{vertices_1[0],
- vertices_1[1],
- vertices_1[2],
- vertices_1[3]};
+ const std::array<T, 4> i{
+ {vertices_0[0], vertices_0[1], vertices_0[2], vertices_0[3]}};
+ const std::array<T, 4> j{
+ {vertices_1[0], vertices_1[1], vertices_1[2], vertices_1[3]}};
// face_orientation=true, face_rotation=false, face_flip=false
if (i == std::array<T, 4>{{j[0], j[1], j[2], j[3]}})
// jump table to pick the right entity type
static const ReferenceCell::Type X = ReferenceCell::Type::Invalid;
static const std::array<const std::array<ReferenceCell::Type, 9>, 4>
- table = {{{X, ReferenceCell::Type::Vertex, X, X, X, X, X, X, X},
- {X, X, ReferenceCell::Type::Line, X, X, X, X, X, X},
- {X,
- X,
- X,
- ReferenceCell::Type::Tri,
- ReferenceCell::Type::Quad,
- X,
- X,
- X,
- X},
- {X,
- X,
- X,
- X,
- ReferenceCell::Type::Tet,
- ReferenceCell::Type::Pyramid,
- ReferenceCell::Type::Wedge,
- X,
- ReferenceCell::Type::Hex}}};
+ table = {{{{X, ReferenceCell::Type::Vertex, X, X, X, X, X, X, X}},
+ {{X, X, ReferenceCell::Type::Line, X, X, X, X, X, X}},
+ {{X,
+ X,
+ X,
+ ReferenceCell::Type::Tri,
+ ReferenceCell::Type::Quad,
+ X,
+ X,
+ X,
+ X}},
+ {{X,
+ X,
+ X,
+ X,
+ ReferenceCell::Type::Tet,
+ ReferenceCell::Type::Pyramid,
+ ReferenceCell::Type::Wedge,
+ X,
+ ReferenceCell::Type::Hex}}}};
// determine cell types and process vertices
std::vector<T> cell_vertices;
AssertIndexRange(vertex, 3);
static const std::array<std::array<unsigned int, 2>, 3> table = {
- {{0, 0}, {0, 1}, {1, 1}}};
+ {{{0, 0}}, {{0, 1}}, {{1, 1}}}};
return table[vertex];
}
(void)face;
static const std::array<std::array<unsigned int, 2>, 2> table = {
- {{1, 0}, {0, 1}}};
+ {{{1, 0}}, {{0, 1}}}};
return table[line_orientation][vertex];
}
const unsigned int line) const override
{
static const std::array<unsigned int, 2> table[6] = {
- {0, 0}, {0, 1}, {0, 2}, {1, 1}, {1, 2}, {2, 1}};
+ {{0, 0}}, {{0, 1}}, {{0, 2}}, {{1, 1}}, {{1, 2}}, {{2, 1}}};
return table[line];
}
(void)face;
static const std::array<std::array<unsigned int, 3>, 6> table = {
- {{2, 1, 0}, {0, 1, 2}, {1, 2, 0}, {0, 2, 1}, {1, 0, 2}, {2, 0, 1}}};
+ {{{2, 1, 0}},
+ {{0, 1, 2}},
+ {{1, 2, 0}},
+ {{0, 2, 1}},
+ {{1, 0, 2}},
+ {{2, 0, 1}}}};
return table[face_orientation][line];
}
{
AssertIndexRange(vertex, 4);
- static const std::array<unsigned int, 2> table[4] = {{0, 0},
- {0, 1},
- {0, 2},
- {1, 2}};
+ static const std::array<unsigned int, 2> table[4] = {{{0, 0}},
+ {{0, 1}},
+ {{0, 2}},
+ {{1, 2}}};
return table[vertex];
}
(void)face;
static const std::array<std::array<unsigned int, 3>, 6> table = {
- {{0, 2, 1}, {0, 1, 2}, {1, 2, 0}, {1, 0, 2}, {2, 1, 0}, {2, 0, 1}}};
+ {{{0, 2, 1}},
+ {{0, 1, 2}},
+ {{1, 2, 0}},
+ {{1, 0, 2}},
+ {{2, 1, 0}},
+ {{2, 0, 1}}}};
return table[face_orientation][vertex];
}
Assert(false, ExcNotImplemented());
static const std::array<unsigned int, 2> table[6] = {
- {0, 0}, {0, 1}, {0, 2}, {1, 1}, {1, 2}, {2, 1}};
+ {{0, 0}}, {{0, 1}}, {{0, 2}}, {{1, 1}}, {{1, 2}}, {{2, 1}}};
return table[line];
}
(void)face;
static const std::array<std::array<unsigned int, 3>, 6> table = {
- {{2, 1, 0}, {0, 1, 2}, {1, 2, 0}, {0, 2, 1}, {1, 0, 2}, {2, 0, 1}}};
+ {{{2, 1, 0}},
+ {{0, 1, 2}},
+ {{1, 2, 0}},
+ {{0, 2, 1}},
+ {{1, 0, 2}},
+ {{2, 0, 1}}}};
return table[face_orientation][line];
}
const unsigned int vertex) const override
{
static const std::array<unsigned int, 2> table[5] = {
- {0, 0}, {0, 1}, {0, 2}, {0, 3}, {1, 2}};
+ {{0, 0}}, {{0, 1}}, {{0, 2}}, {{0, 3}}, {{1, 2}}};
return table[vertex];
}
else // Tri
{
static const std::array<std::array<unsigned int, 3>, 6> table = {
- {{0, 2, 1},
- {0, 1, 2},
- {1, 2, 0},
- {1, 0, 2},
- {2, 1, 0},
- {2, 0, 1}}};
+ {{{0, 2, 1}},
+ {{0, 1, 2}},
+ {{1, 2, 0}},
+ {{1, 0, 2}},
+ {{2, 1, 0}},
+ {{2, 0, 1}}}};
return table[face_orientation][vertex];
}
Assert(false, ExcNotImplemented());
static const std::array<unsigned int, 2> table[6] = {
- {0, 0}, {0, 1}, {0, 2}, {1, 1}, {1, 2}, {2, 1}};
+ {{0, 0}}, {{0, 1}}, {{0, 2}}, {{1, 1}}, {{1, 2}}, {{2, 1}}};
return table[line];
}
(void)face;
static const std::array<std::array<unsigned int, 3>, 6> table = {
- {{2, 1, 0}, {0, 1, 2}, {1, 2, 0}, {0, 2, 1}, {1, 0, 2}, {2, 0, 1}}};
+ {{{2, 1, 0}},
+ {{0, 1, 2}},
+ {{1, 2, 0}},
+ {{0, 2, 1}},
+ {{1, 0, 2}},
+ {{2, 0, 1}}}};
return table[face_orientation][line];
}
const unsigned int vertex) const override
{
static const std::array<std::array<unsigned int, 2>, 6> table = {
- {{0, 1}, {0, 0}, {0, 2}, {1, 0}, {1, 1}, {1, 2}}};
+ {{{0, 1}}, {{0, 0}}, {{0, 2}}, {{1, 0}}, {{1, 1}}, {{1, 2}}}};
return table[vertex];
}
else // TRI
{
static const std::array<std::array<unsigned int, 3>, 6> table = {
- {{0, 2, 1},
- {0, 1, 2},
- {1, 2, 0},
- {1, 0, 2},
- {2, 1, 0},
- {2, 0, 1}}};
+ {{{0, 2, 1}},
+ {{0, 1, 2}},
+ {{1, 2, 0}},
+ {{1, 0, 2}},
+ {{2, 1, 0}},
+ {{2, 0, 1}}}};
return table[face_orientation][vertex];
}