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);
154 const unsigned int n_components,
155 const unsigned int degree,
158 : reference_cell_kind(reference_cell)
159 , number_of_unique_2d_subobjects(
160 internal::number_unique_entries(
data.dofs_per_object_inclusive[2]))
161 , number_unique_faces(
162 internal::number_unique_entries(
data.dofs_per_object_inclusive[dim - 1]))
163 , dofs_per_vertex(
data.dofs_per_object_exclusive[0][0])
164 , dofs_per_line(
data.dofs_per_object_exclusive[1][0])
165 , n_dofs_on_quad(
data.dofs_per_object_exclusive[2])
166 , dofs_per_quad(n_dofs_on_quad[0])
168 *max_element(n_dofs_on_quad.begin(), n_dofs_on_quad.end()))
169 , dofs_per_hex(
data.dofs_per_object_exclusive[3][0])
170 , first_line_index(
data.object_index[1][0])
171 , first_index_of_quads(
data.object_index[2])
172 , first_quad_index(first_index_of_quads[0])
173 , first_hex_index(
data.object_index[3][0])
174 , first_line_index_of_faces(
data.first_object_index_on_face[1])
175 , first_face_line_index(first_line_index_of_faces[0])
176 , first_quad_index_of_faces(
data.first_object_index_on_face[2])
177 , first_face_quad_index(first_quad_index_of_faces[0])
178 , n_dofs_on_face(
data.dofs_per_object_inclusive[dim - 1])
179 , dofs_per_face(n_dofs_on_face[0])
181 *max_element(n_dofs_on_face.begin(), n_dofs_on_face.end()))
182 , dofs_per_cell(
data.dofs_per_object_inclusive[dim][0])
183 , components(n_components)
185 , conforming_space(conformity)
186 , block_indices_data(block_indices.
size() == 0 ?
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())