Skip to content

Commit

Permalink
be more backwards compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
miklos1 committed Oct 20, 2016
1 parent 41b9f76 commit 3551f66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tsfc/finatinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@

import ufl

from tsfc.ufl_utils import spanning_degree


__all__ = ("create_element", "supported_elements", "as_fiat_cell")

Expand Down Expand Up @@ -66,7 +68,7 @@ def fiat_compat(element):
from tsfc.fiatinterface import create_element
from finat.fiat_elements import FiatElementBase
cell = as_fiat_cell(element.cell())
finat_element = FiatElementBase(cell, element.degree())
finat_element = FiatElementBase(cell, spanning_degree(element))
finat_element._fiat_element = create_element(element)
return finat_element

Expand Down

0 comments on commit 3551f66

Please sign in to comment.