The class represents the degree-of-freedom (dofs) for an element. Dofs are associated with a mesh entity. This class also handles sub-space dofs, which are views into the parent dofs.
More...
|
| ElementDofLayout (int block_size, const std::vector< std::vector< std::vector< int > > > &entity_dofs, const std::vector< std::vector< std::vector< int > > > &entity_closure_dofs, const std::vector< int > &parent_map, const std::vector< ElementDofLayout > &sub_layouts) |
| Constructor. More...
|
|
ElementDofLayout | copy () const |
| Copy the DOF layout, discarding any parent information.
|
|
| ElementDofLayout (const ElementDofLayout &dofmap)=default |
| Copy constructor.
|
|
| ElementDofLayout (ElementDofLayout &&dofmap)=default |
| Move constructor.
|
|
| ~ElementDofLayout ()=default |
| Destructor.
|
|
ElementDofLayout & | operator= (const ElementDofLayout &dofmap)=default |
| Copy assignment.
|
|
ElementDofLayout & | operator= (ElementDofLayout &&dofmap)=default |
| Move assignment.
|
|
bool | operator== (const ElementDofLayout &layout) const |
| Equality operator. More...
|
|
int | num_dofs () const |
| Return the dimension of the local finite element function space on a cell (number of dofs on element) More...
|
|
int | num_entity_dofs (int dim) const |
| Return the number of dofs for a given entity dimension. More...
|
|
int | num_entity_closure_dofs (int dim) const |
| Return the number of closure dofs for a given entity dimension. More...
|
|
const std::vector< int > & | entity_dofs (int dim, int entity_index) const |
| Local-local mapping of dofs on entity of cell. More...
|
|
const std::vector< int > & | entity_closure_dofs (int dim, int entity_index) const |
| Local-local closure dofs on entity of cell. More...
|
|
const std::vector< std::vector< std::vector< int > > > & | entity_dofs_all () const |
| Direct access to all entity dofs (dof = _entity_dofs[dim][entity][i])
|
|
const std::vector< std::vector< std::vector< int > > > & | entity_closure_dofs_all () const |
| Direct access to all entity closure dofs (dof = _entity_dofs[dim][entity][i])
|
|
int | num_sub_dofmaps () const |
| Get number of sub-dofmaps.
|
|
const ElementDofLayout & | sub_layout (std::span< const int > component) const |
| Get sub-dofmap given by list of components, one for each level.
|
|
std::vector< int > | sub_view (std::span< const int > component) const |
| Get view for a sub-layout, defined by the component list (as for sub_layour()), into this dofmap. I.e., the dofs in this dofmap that are the sub-dofs.
|
|
int | block_size () const |
| Block size.
|
|
bool | is_view () const |
| True iff dof map is a view into another map. More...
|
|
The class represents the degree-of-freedom (dofs) for an element. Dofs are associated with a mesh entity. This class also handles sub-space dofs, which are views into the parent dofs.