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

Function test_basix_element

python/test/unit/fem/test_function_space.py:258–267  ·  view source on GitHub ↗
(V, W, Q, V2)

Source from the content-addressed store, hash-verified

256
257@pytest.mark.skipif(default_real_type != np.float64, reason="float32 not supported yet")
258def test_basix_element(V, W, Q, V2):
259 for V_ in (V, W, V2):
260 e = V_.element.basix_element
261 assert isinstance(
262 e, basix._basixcpp.FiniteElement_float64 | basix._basixcpp.FiniteElement_float32
263 )
264
265 # Mixed spaces do not yet return a basix element
266 with pytest.raises(RuntimeError):
267 e = Q.element.basix_element
268
269
270@pytest.mark.skip_in_parallel

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected