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

Function interpolation_matrix

python/dolfinx/fem/utils.py:136–150  ·  view source on GitHub ↗

Create interpolation matrix between spaces on the same mesh. Args: space0: space to interpolate from. space1: space to interpolate into. Returns: Interpolation matrix. Note: The returned matrix is not finalised, i.e. ghost values are not accumul

(space0: FunctionSpace, space1: FunctionSpace)

Source from the content-addressed store, hash-verified

134
135
136def interpolation_matrix(space0: FunctionSpace, space1: FunctionSpace) -> _MatrixCSR:
137 """Create interpolation matrix between spaces on the same mesh.
138
139 Args:
140 space0: space to interpolate from.
141 space1: space to interpolate into.
142
143 Returns:
144 Interpolation matrix.
145
146 Note:
147 The returned matrix is not finalised, i.e. ghost values are not
148 accumulated.
149 """
150 return _MatrixCSR(_interpolation_matrix(space0._cpp_object, space1._cpp_object))
151
152
153def compute_integration_domains(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected