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

Function ref_eval

python/test/unit/fem/test_complex_assembler.py:111–112  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

109
110 # Reference Solution
111 def ref_eval(x):
112 return np.cos(2 * np.pi * x[0]) * np.cos(2 * np.pi * x[1])
113
114 u_ref = Function(V, dtype=real_dtype)
115 u_ref.interpolate(ref_eval)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected