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

Function f

python/test/unit/fem/test_function.py:161–166  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

159
160def test_interpolation_rank1(W):
161 def f(x):
162 values = np.empty((3, x.shape[1]))
163 values[0] = 1.0
164 values[1] = 2.0
165 values[2] = 3.0
166 return values
167
168 w = Function(W)
169 w.interpolate(f)

Callers 1

test_plus_minus_vectorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected