Skip to content

Commit

Permalink
test that DG(point, 1) raises ValueError
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrubeck committed Nov 9, 2023
1 parent 05d36c9 commit 68c57e8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/unit/test_fiat.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,15 @@ def test_error_quadrature_degree(element):
eval(element)


@pytest.mark.parametrize('element', [
'DiscontinuousLagrange(P, 1)',
'GaussLegendre(P, 1)'
])
def test_error_point_high_order(element):
with pytest.raises(ValueError):
eval(element)


@pytest.mark.parametrize('cell', [I, T, S])
def test_expansion_orthonormality(cell):
from FIAT import expansions, quadrature
Expand Down Expand Up @@ -545,7 +554,7 @@ def test_expansion_values(dim):
dpoints.append(tuple(2*np.array(alpha, dtype="d")/npoints-1))
rpoints.append(tuple(2*sympy.Rational(a, npoints)-1 for a in alpha))

n = 20
n = 16
Uvals = U.tabulate(n, dpoints)
idx = (lambda p: p, expansions.morton_index2, expansions.morton_index3)[dim-1]
eta = sympy.DeferredVector("eta")
Expand Down

0 comments on commit 68c57e8

Please sign in to comment.