23 internal::GenericDoFsPerObject
25 const std::vector<unsigned int> &dofs_per_object,
30 const unsigned int face_no = 0;
34 result.
object_index.resize(4, std::vector<unsigned int>(1));
38 const unsigned int dofs_per_vertex = dofs_per_object[0];
42 const unsigned int dofs_per_line = dofs_per_object[1];
46 const unsigned int dofs_per_quad = dim > 1 ? dofs_per_object[2] : 0;
50 const unsigned int dofs_per_hex = dim > 2 ? dofs_per_object[3] : 0;
55 const unsigned int first_line_index =
60 const unsigned int first_quad_index =
61 (first_line_index + cell_type.
n_lines() * dofs_per_line);
67 (dim == 2 ? 1 : (dim == 3 ? cell_type.
n_faces() : 0)) * dofs_per_quad);
84 (dim == 3 ? 1 : 0) * dofs_per_quad);
90 cell_type.
n_lines() * dofs_per_line +
91 (dim == 2 ? 1 : (dim == 3 ? cell_type.
n_faces() : 0)) * dofs_per_quad +
92 (dim == 3 ? 1 : 0) * dofs_per_hex);
100 if (std::all_of(vector.begin(), vector.end(), [&](
const auto &e) {
101 return e == vector.front();
107 return vector.size();
115 const std::vector<unsigned int> &dofs_per_object,
117 const unsigned int degree,
134 const std::vector<unsigned int> &dofs_per_object,
137 const unsigned int degree,
155 const unsigned int degree,
160 internal::number_unique_entries(data.dofs_per_object_inclusive[2]))
162 internal::number_unique_entries(data.dofs_per_object_inclusive[dim - 1]))
const unsigned int dofs_per_quad
const unsigned int first_face_quad_index
const std::vector< unsigned int > first_index_of_quads
const std::vector< unsigned int > first_line_index_of_faces
const unsigned int components
const unsigned int degree
const std::vector< unsigned int > n_dofs_on_face
const unsigned int dofs_per_face
bool operator==(const FiniteElementData &) const
const unsigned int dofs_per_line
unsigned int n_components() const
ReferenceCell reference_cell() const
const unsigned int first_hex_index
const unsigned int first_face_line_index
const unsigned int dofs_per_quad_max
const unsigned int first_line_index
const unsigned int dofs_per_hex
const BlockIndices block_indices_data
const unsigned int number_unique_faces
const BlockIndices & block_indices() const
const std::vector< unsigned int > first_quad_index_of_faces
const ReferenceCell reference_cell_kind
const unsigned int number_of_unique_2d_subobjects
const std::vector< unsigned int > n_dofs_on_quad
const Conformity conforming_space
const unsigned int first_quad_index
const unsigned int dofs_per_vertex
const unsigned int dofs_per_cell
FiniteElementData(const std::vector< unsigned int > &dofs_per_object, const unsigned int n_components, const unsigned int degree, const Conformity conformity=unknown, const BlockIndices &block_indices=BlockIndices())
const unsigned int dofs_per_face_max
unsigned int n_vertices() const
unsigned int n_faces() const
unsigned int n_lines() const
ReferenceCell face_reference_cell(const unsigned int face_no) const
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
unsigned int number_unique_entries(const std::vector< unsigned int > &vector)
internal::GenericDoFsPerObject expand(const unsigned int dim, const std::vector< unsigned int > &dofs_per_object, const ReferenceCell reference_cell)
std::vector< std::vector< unsigned int > > object_index
std::vector< std::vector< unsigned int > > first_object_index_on_face
std::vector< std::vector< unsigned int > > dofs_per_object_inclusive
std::vector< std::vector< unsigned int > > dofs_per_object_exclusive