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

Function test_cell_mismatch

python/test/unit/fem/test_function_space.py:250–254  ·  view source on GitHub ↗

Test that cell mismatch raises early enough from UFL.

(mesh)

Source from the content-addressed store, hash-verified

248
249
250def test_cell_mismatch(mesh):
251 """Test that cell mismatch raises early enough from UFL."""
252 e = element("P", "triangle", 1, dtype=default_real_type)
253 with pytest.raises(BaseException):
254 functionspace(mesh, e)
255
256
257@pytest.mark.skipif(default_real_type != np.float64, reason="float32 not supported yet")

Callers

nothing calls this directly

Calls 1

functionspaceFunction · 0.90

Tested by

no test coverage detected