11 #include <dolfinx/common/types.h>
48 const std::vector<std::vector<std::set<int>>>&
entity_dofs,
49 const std::vector<int>& parent_map,
50 const std::vector<std::shared_ptr<const ElementDofLayout>>& sub_dofmaps,
91 std::vector<int>
entity_dofs(
int entity_dim,
int cell_entity_index)
const;
98 int cell_entity_index)
const;
101 const std::vector<std::vector<std::set<int>>>&
entity_dofs_all()
const;
105 const std::vector<std::vector<std::set<int>>>&
112 std::shared_ptr<const ElementDofLayout>
113 sub_dofmap(
const std::vector<int>& component)
const;
118 std::vector<int>
sub_view(
const std::vector<int>& component)
const;
134 std::vector<int> _parent_map;
140 std::array<int, 4> _num_entity_dofs;
144 std::array<int, 4> _num_entity_closure_dofs;
148 std::vector<std::vector<std::set<int>>> _entity_dofs;
151 std::vector<std::vector<std::set<int>>> _entity_closure_dofs;
154 std::vector<std::shared_ptr<const ElementDofLayout>> _sub_dofmaps;
The class represents the degree-of-freedom (dofs) for an element. Dofs are associated with a mesh ent...
Definition: ElementDofLayout.h:37
ElementDofLayout & operator=(ElementDofLayout &&dofmap)=default
Move assignment.
ElementDofLayout(int block_size, const std::vector< std::vector< std::set< int >>> &entity_dofs, const std::vector< int > &parent_map, const std::vector< std::shared_ptr< const ElementDofLayout >> &sub_dofmaps, const mesh::CellType cell_type)
Constructor.
Definition: ElementDofLayout.cpp:19
int num_entity_dofs(int dim) const
Return the number of dofs for a given entity dimension.
Definition: ElementDofLayout.cpp:84
int num_dofs() const
Return the dimension of the local finite element function space on a cell (number of dofs on element)
Definition: ElementDofLayout.cpp:82
std::vector< int > entity_closure_dofs(int entity_dim, int cell_entity_index) const
Local-local closure dofs on entity of cell.
Definition: ElementDofLayout.cpp:103
~ElementDofLayout()=default
Destructor.
std::vector< int > sub_view(const std::vector< int > &component) const
Get view for a sub dofmap, defined by the component list (as for sub_dofmap()), into this dofmap....
Definition: ElementDofLayout.cpp:142
ElementDofLayout & operator=(const ElementDofLayout &dofmap)=default
Copy assignment.
int num_entity_closure_dofs(int dim) const
Return the number of closure dofs for a given entity dimension.
Definition: ElementDofLayout.cpp:89
int block_size() const
Block size.
Definition: ElementDofLayout.cpp:167
int num_sub_dofmaps() const
Get number of sub-dofmaps.
Definition: ElementDofLayout.cpp:123
std::vector< int > entity_dofs(int entity_dim, int cell_entity_index) const
Local-local mapping of dofs on entity of cell.
Definition: ElementDofLayout.cpp:94
std::shared_ptr< const ElementDofLayout > sub_dofmap(const std::vector< int > &component) const
Get sub-dofmap given by list of components, one for each level.
Definition: ElementDofLayout.cpp:126
const std::vector< std::vector< std::set< int > > > & entity_closure_dofs_all() const
Direct access to all entity closure dofs (dof = _entity_dofs[dim][entity][i])
Definition: ElementDofLayout.cpp:118
ElementDofLayout(ElementDofLayout &&dofmap)=default
Move constructor.
ElementDofLayout copy() const
Copy the DOF layout, discarding any parent information.
Definition: ElementDofLayout.cpp:75
bool is_view() const
True iff dof map is a view into another map.
Definition: ElementDofLayout.cpp:169
const std::vector< std::vector< std::set< int > > > & entity_dofs_all() const
Direct access to all entity dofs (dof = _entity_dofs[dim][entity][i])
Definition: ElementDofLayout.cpp:112
ElementDofLayout(const ElementDofLayout &dofmap)=default
Copy constructor.
CellType
Cell type identifier.
Definition: cell_types.h:21