Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
remove variant=('equispaced', 'spectral') tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miklos1 committed Jan 27, 2017
1 parent 22b364e commit 6321f8f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
10 changes: 0 additions & 10 deletions tests/test_create_fiat_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,6 @@ def test_triangle_variant_spectral_fail():
create_element(ufl_element)


def test_triangle_x_interval_variant():
ufl_cell = ufl.TensorProductCell(ufl.triangle, ufl.interval)
ufl_element = ufl.FiniteElement('DG', ufl_cell, 2, variant=('equispaced', 'spectral'))
actual = create_element(ufl_element)

assert isinstance(actual, FIAT.TensorProductElement)
assert isinstance(actual.A, FIAT_DiscontinuousLagrange)
assert isinstance(actual.B, FIAT.GaussLegendre)


def test_quadrilateral_variant_spectral_q():
element = create_element(ufl.FiniteElement('Q', ufl.quadrilateral, 3, variant='spectral'))
assert isinstance(element.element.A, FIAT.GaussLobattoLegendre)
Expand Down
10 changes: 0 additions & 10 deletions tests/test_create_finat_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,6 @@ def test_triangle_variant_spectral_fail():
create_element(ufl_element)


def test_triangle_x_interval_variant():
ufl_cell = ufl.TensorProductCell(ufl.triangle, ufl.interval)
ufl_element = ufl.FiniteElement('DG', ufl_cell, 2, variant=('equispaced', 'spectral'))
actual = create_element(ufl_element)

assert isinstance(actual, finat.TensorProductElement)
assert isinstance(actual.factors[0], finat.DiscontinuousLagrange)
assert isinstance(actual.factors[1], finat.GaussLegendre)


def test_quadrilateral_variant_spectral_q():
element = create_element(ufl.FiniteElement('Q', ufl.quadrilateral, 3, variant='spectral'))
assert isinstance(element.product.factors[0], finat.GaussLobattoLegendre)
Expand Down

0 comments on commit 6321f8f

Please sign in to comment.