(mesh)
| 217 | |
| 218 | |
| 219 | def 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) |
nothing calls this directly
no test coverage detected