Create a sparsity pattern from a bilinear form. Args: 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 responsible for calling ``assemble`` on the spar
(a: dolfinx.fem.forms.Form)
| 36 | |
| 37 | |
| 38 | def create_sparsity_pattern(a: dolfinx.fem.forms.Form) -> SparsityPattern: |
| 39 | """Create a sparsity pattern from a bilinear form. |
| 40 | |
| 41 | Args: |
| 42 | a: Bilinear form to build a sparsity pattern for. |
| 43 | |
| 44 | Returns: |
| 45 | Sparsity pattern for the form ``a``. |
| 46 | |
| 47 | Note: |
| 48 | The pattern is not finalised, i.e. the caller is responsible for |
| 49 | calling ``assemble`` on the sparsity pattern. |
| 50 | """ |
| 51 | return _create_sparsity_pattern(a._cpp_object) |
| 52 | |
| 53 | |
| 54 | def build_sparsity_pattern(pattern: SparsityPattern, a: dolfinx.fem.forms.Form): |
nothing calls this directly
no outgoing calls
no test coverage detected