DOLFIN-X
DOLFIN-X C++ interface
|
11 #include <dolfinx/common/MPI.h>
12 #include <dolfinx/graph/AdjacencyList.h>
29 class ElementDofLayout;
54 graph::AdjacencyList<std::int32_t>
56 std::int32_t num_cells);
72 std::shared_ptr<const common::IndexMap>
index_map,
94 Eigen::Array<std::int32_t, Eigen::Dynamic, 1>::ConstSegmentReturnType
97 return _dofmap.links(cell);
110 std::pair<std::unique_ptr<DofMap>, std::vector<std::int32_t>>
Mesh data structures.
Definition: DirichletBC.h:27
DofMap extract_sub_dofmap(const std::vector< int > &component) const
Extract subdofmap component.
Definition: DofMap.cpp:213
std::pair< std::unique_ptr< DofMap >, std::vector< std::int32_t > > collapse(MPI_Comm comm, const mesh::Topology &topology) const
Create a "collapsed" dofmap (collapses a sub-dofmap)
Definition: DofMap.cpp:243
graph::AdjacencyList< std::int32_t > transpose_dofmap(graph::AdjacencyList< std::int32_t > &dofmap, std::int32_t num_cells)
Create an adjacency list that maps a global index (process-wise) to the 'unassembled' cell-wise contr...
Definition: DofMap.cpp:162
DofMap & operator=(DofMap &&dofmap)=default
Move assignment.
std::shared_ptr< const ElementDofLayout > element_dof_layout
Layout of dofs on an element.
Definition: DofMap.h:118
This class provides a static adjacency list data structure. It is commonly used to store directed gra...
Definition: AdjacencyList.h:28
Degree-of-freedom map.
Definition: DofMap.h:66
Miscellaneous classes, functions and types.
virtual ~DofMap()=default
Destructor.
const graph::AdjacencyList< std::int32_t > & list() const
Get dofmap data.
Definition: DofMap.h:115
Eigen::Array< std::int32_t, Eigen::Dynamic, 1 >::ConstSegmentReturnType cell_dofs(int cell) const
Local-to-global mapping of dofs on a cell.
Definition: DofMap.h:95
DofMap(std::shared_ptr< const ElementDofLayout > element_dof_layout, std::shared_ptr< const common::IndexMap > index_map, const graph::AdjacencyList< std::int32_t > &dofmap)
Create a DofMap from the layout of dofs on a reference element, an IndexMap defining the distribution...
Definition: DofMap.cpp:203
std::shared_ptr< const common::IndexMap > index_map
Index map that described the parallel distribution of the dofmap.
Definition: DofMap.h:121
Finite element method functionality.
Definition: assemble_matrix_impl.h:23
Topology stores the topology of a mesh, consisting of mesh entities and connectivity (incidence relat...
Definition: Topology.h:58
DofMap(DofMap &&dofmap)=default
Move constructor.