Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/dolfinx/v0.9.0/cpp/doxygen/db/dcc/namespacedolfinx_1_1fem_1_1sparsitybuild.html
DOLFINx 0.7.3
DOLFINx C++ interface
Loading...
Searching...
No Matches
Functions
dolfinx::fem::sparsitybuild Namespace Reference

Support for building sparsity patterns from degree-of-freedom maps. More...

Functions

void cells (la::SparsityPattern &pattern, std::span< const std::int32_t > cells, std::array< std::reference_wrapper< const DofMap >, 2 > dofmaps)
 Iterate over cells and insert entries into sparsity pattern.
 
void interior_facets (la::SparsityPattern &pattern, std::span< const std::int32_t > facets, std::array< std::reference_wrapper< const DofMap >, 2 > dofmaps)
 Iterate over interior facets and insert entries into sparsity pattern.
 

Detailed Description

Support for building sparsity patterns from degree-of-freedom maps.

Function Documentation

◆ cells()

void cells ( la::SparsityPattern pattern,
std::span< const std::int32_t >  cells,
std::array< std::reference_wrapper< const DofMap >, 2 >  dofmaps 
)

Iterate over cells and insert entries into sparsity pattern.

Parameters
[in,out]patternThe sparsity pattern to insert into
[in]cellsThe cell indices
[in]dofmapsDofmaps to used in building the sparsity pattern
Note
The sparsity pattern is not finalised

◆ interior_facets()

void interior_facets ( la::SparsityPattern pattern,
std::span< const std::int32_t >  facets,
std::array< std::reference_wrapper< const DofMap >, 2 >  dofmaps 
)

Iterate over interior facets and insert entries into sparsity pattern.

Parameters
[in,out]patternSparsity pattern to insert into
[in]facetsFacets as (cell0, cell1) pairs for each facet.
[in]dofmapsThe dofmap to use in building the sparsity pattern.
Note
The sparsity pattern is not finalised.