MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / build_sparsity_pattern

Function build_sparsity_pattern

python/dolfinx/fem/utils.py:54–68  ·  view source on GitHub ↗

Build a sparsity pattern from a bilinear form. Args: pattern: The sparsity pattern to add to a: Bilinear form to build a sparsity pattern for. Returns: Sparsity pattern for the form ``a``. Note: The pattern is not finalised, i.e. the caller is responsib

(pattern: SparsityPattern, a: dolfinx.fem.forms.Form)

Source from the content-addressed store, hash-verified

52
53
54def build_sparsity_pattern(pattern: SparsityPattern, a: dolfinx.fem.forms.Form):
55 """Build a sparsity pattern from a bilinear form.
56
57 Args:
58 pattern: The sparsity pattern to add to
59 a: Bilinear form to build a sparsity pattern for.
60
61 Returns:
62 Sparsity pattern for the form ``a``.
63
64 Note:
65 The pattern is not finalised, i.e. the caller is responsible for
66 calling ``assemble`` on the sparsity pattern.
67 """
68 return _build_sparsity_pattern(pattern, a._cpp_object)
69
70
71def create_interpolation_data(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected