26 const std::vector<unsigned int> &dofs_per_object,
31 const unsigned int face_no = 0;
35 result.
object_index.resize(4, std::vector<unsigned int>(1));
39 const unsigned int dofs_per_vertex = dofs_per_object[0];
43 const unsigned int dofs_per_line = dofs_per_object[1];
47 const unsigned int dofs_per_quad = dim > 1 ? dofs_per_object[2] : 0;
51 const unsigned int dofs_per_hex = dim > 2 ? dofs_per_object[3] : 0;
56 const unsigned int first_line_index =
61 const unsigned int first_quad_index =
62 (first_line_index + cell_type.
n_lines() * dofs_per_line);
68 (dim == 2 ? 1 : (dim == 3 ? cell_type.
n_faces() : 0)) * dofs_per_quad);
85 (dim == 3 ? 1 : 0) * dofs_per_quad);
91 cell_type.
n_lines() * dofs_per_line +
92 (dim == 2 ? 1 : (dim == 3 ? cell_type.
n_faces() : 0)) * dofs_per_quad +
93 (dim == 3 ? 1 : 0) * dofs_per_hex);
101 if (std::all_of(vector.begin(), vector.end(), [&](
const auto &e) {
102 return e == vector.front();
108 return vector.size();
116 const std::vector<unsigned int> &dofs_per_object,
117 const unsigned int n_components,
118 const unsigned int degree,
135 const std::vector<unsigned int> &dofs_per_object,
137 const unsigned int n_components,
138 const unsigned int degree,
155 const unsigned int n_components,
156 const unsigned int degree,
159 : reference_cell_kind(reference_cell)
160 , number_of_unique_2d_subobjects(
161 internal::number_unique_entries(data.dofs_per_object_inclusive[2]))
162 , number_unique_faces(
163 internal::number_unique_entries(data.dofs_per_object_inclusive[dim - 1]))
164 , dofs_per_vertex(data.dofs_per_object_exclusive[0][0])
165 , dofs_per_line(data.dofs_per_object_exclusive[1][0])
166 , n_dofs_on_quad(data.dofs_per_object_exclusive[2])
167 , dofs_per_quad(n_dofs_on_quad[0])
169 *max_element(n_dofs_on_quad.begin(), n_dofs_on_quad.end()))
170 , dofs_per_hex(data.dofs_per_object_exclusive[3][0])
171 , first_line_index(data.object_index[1][0])
172 , first_index_of_quads(data.object_index[2])
173 , first_quad_index(first_index_of_quads[0])
174 , first_hex_index(data.object_index[3][0])
175 , first_line_index_of_faces(data.first_object_index_on_face[1])
176 , first_face_line_index(first_line_index_of_faces[0])
177 , first_quad_index_of_faces(data.first_object_index_on_face[2])
178 , first_face_quad_index(first_quad_index_of_faces[0])
179 , n_dofs_on_face(data.dofs_per_object_inclusive[dim - 1])
180 , dofs_per_face(n_dofs_on_face[0])
182 *max_element(n_dofs_on_face.begin(), n_dofs_on_face.end()))
183 , dofs_per_cell(data.dofs_per_object_inclusive[dim][0])
184 , components(n_components)
186 , conforming_space(conformity)
187 , block_indices_data(block_indices.size() == 0 ?
const unsigned int dofs_per_quad
const unsigned int components
const unsigned int degree
bool operator==(const FiniteElementData &) const
const unsigned int dofs_per_line
const unsigned int dofs_per_hex
const Conformity conforming_space
const unsigned int dofs_per_vertex
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())
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