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

Function test_interpolation_function

python/test/unit/fem/test_function.py:219–226  ·  view source on GitHub ↗
(mesh)

Source from the content-addressed store, hash-verified

217
218
219def test_interpolation_function(mesh):
220 V = functionspace(mesh, ("Lagrange", 1))
221 u = Function(V)
222 u.x.array[:] = 1
223 Vh = functionspace(mesh, ("Lagrange", 1))
224 uh = Function(Vh)
225 uh.interpolate(u)
226 assert np.allclose(uh.x.array, 1)

Callers

nothing calls this directly

Calls 3

interpolateMethod · 0.95
functionspaceFunction · 0.90
FunctionClass · 0.90

Tested by

no test coverage detected