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.5.1
DOLFINx C++ interface
Functions
dolfinx::fem::sparsitybuild Namespace Reference

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

Functions

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

Detailed Description

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

Function Documentation

◆ cells() [1/2]

void cells ( la::SparsityPattern pattern,
const mesh::Topology topology,
const std::array< const 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]topologyThe mesh topology to build the sparsity pattern over
[in]dofmapsThe dofmap to use in building the sparsity pattern
Note
The sparsity pattern is not finalised

◆ cells() [2/2]

void cells ( la::SparsityPattern pattern,
const std::span< const std::int32_t > &  cells,
const std::array< const 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]dofmapsThe dofmap to use in building the sparsity pattern
Note
The sparsity pattern is not finalised

◆ exterior_facets() [1/2]

void exterior_facets ( la::SparsityPattern pattern,
const mesh::Topology topology,
const std::array< const std::reference_wrapper< const DofMap >, 2 > &  dofmaps 
)

Iterate over exterior facets and insert entries into sparsity pattern.

Parameters
[in,out]patternThe sparsity pattern to insert into
[in]topologyThe mesh topology to build the sparsity pattern over
[in]dofmapsThe dofmap to use in building the sparsity pattern
Note
The sparsity pattern is not finalised

◆ exterior_facets() [2/2]

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

Iterate over exterior facets and insert entries into sparsity pattern.

Parameters
[in,out]patternThe sparsity pattern to insert into
[in]facetsThe facets as (cell, local_index) pairs
[in]dofmapsThe dofmap to use in building the sparsity pattern
Note
The sparsity pattern is not finalised

◆ interior_facets() [1/2]

void interior_facets ( la::SparsityPattern pattern,
const mesh::Topology topology,
const std::array< const std::reference_wrapper< const DofMap >, 2 > &  dofmaps 
)

Iterate over interior facets and insert entries into sparsity pattern.

Parameters
[in,out]patternThe sparsity pattern to insert into
[in]topologyThe mesh topology to build the sparsity pattern over
[in]dofmapsThe dofmap to use in building the sparsity pattern
Note
The sparsity pattern is not finalised

◆ interior_facets() [2/2]

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

Iterate over interior facets and insert entries into sparsity pattern.

Parameters
[in,out]patternThe sparsity pattern to insert into
[in]facetsThe facets as (cell, local_index) pairs, where local_index is the index of the facet relative to the cell
[in]dofmapsThe dofmap to use in building the sparsity pattern
Note
The sparsity pattern is not finalised