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

Function e3

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

Source from the content-addressed store, hash-verified

73 return values
74
75 def e3(x):
76 values = np.empty((9, x.shape[1]))
77 values[0] = x[0] + x[1] + x[2]
78 values[1] = x[0] - x[1] - x[2]
79 values[2] = x[0] + x[1] + x[2]
80 values[3] = x[0]
81 values[4] = x[1]
82 values[5] = x[2]
83 values[6] = -x[0]
84 values[7] = -x[1]
85 values[8] = -x[2]
86 return values
87
88 u1.interpolate(lambda x: x[0] + x[1] + x[2])
89 u2.interpolate(e2)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected