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