// the function should also not have been
// called
AssertIndexRange(index, this->n_dofs_per_quad(face));
- Assert(adjust_quad_dof_index_for_face_orientation_table
- [this->n_unique_quads() == 1 ? 0 : face]
- .n_elements() == (this->reference_cell().face_reference_cell(
- face) == ReferenceCells::Quadrilateral ?
- 8 :
- 6) *
- this->n_dofs_per_quad(face),
- ExcInternalError());
- return index +
- adjust_quad_dof_index_for_face_orientation_table
- [this->n_unique_quads() == 1 ? 0 : face](index,
- (face_orientation ? 4 : 0) +
- (face_flip ? 2 : 0) +
- (face_rotation ? 1 : 0));
+ const auto table_n = this->n_unique_quads() == 1 ? 0 : face;
+ Assert(
+ adjust_quad_dof_index_for_face_orientation_table[table_n].n_elements() ==
+ (this->reference_cell().n_face_orientations(face)) *
+ this->n_dofs_per_quad(face),
+ ExcInternalError());
+ return index + adjust_quad_dof_index_for_face_orientation_table[table_n](
+ index,
+ (face_orientation ? 4 : 0) + (face_flip ? 2 : 0) +
+ (face_rotation ? 1 : 0));
}
{
adjust_quad_dof_sign_for_face_orientation_table[f] =
Table<2, bool>(this->n_dofs_per_quad(f),
- this->reference_cell().face_reference_cell(f) ==
- ReferenceCells::Quadrilateral ?
- 8 :
- 6);
+ this->reference_cell().n_face_orientations(f));
adjust_quad_dof_sign_for_face_orientation_table[f].fill(false);
}
}
AssertIndexRange(index, this->n_dofs_per_quad(face));
Assert(adjust_quad_dof_sign_for_face_orientation_table
[this->n_unique_quads() == 1 ? 0 : face]
- .n_elements() == (this->reference_cell().face_reference_cell(
- face) == ReferenceCells::Quadrilateral ?
- 8 :
- 6) *
- this->n_dofs_per_quad(face),
+ .n_elements() ==
+ this->reference_cell().n_face_orientations(face) *
+ this->n_dofs_per_quad(face),
ExcInternalError());
return adjust_quad_dof_sign_for_face_orientation_table
AssertDimension(this->n_unique_faces(), 1);
const unsigned int face_no = 0;
- Assert(this->adjust_quad_dof_index_for_face_orientation_table[0]
- .n_elements() == 8 * this->n_dofs_per_quad(face_no),
- ExcInternalError());
+ Assert(
+ this->adjust_quad_dof_index_for_face_orientation_table[0].n_elements() ==
+ this->reference_cell().n_face_orientations(face_no) *
+ this->n_dofs_per_quad(face_no),
+ ExcInternalError());
const unsigned int n = q_degree - 1;
Assert(n * n == this->n_dofs_per_quad(face_no), ExcInternalError());