def test_facet_coordinate_ds(mesh): assert np.allclose(0.5 * (2 + sqrt(2)), assemble(FacetCoordinate(mesh)[0] * ds))
def test_facet_coordinate_dx(mesh): with pytest.raises(UFLException): assemble(FacetCoordinate(mesh)[0] * dx)