Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions tsfc/fiatinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,17 @@
"HDiv Trace": FIAT.HDivTrace,
"Regge": FIAT.Regge,
"Hellan-Herrmann-Johnson": FIAT.HellanHerrmannJohnson,
"DPC": FIAT.DPC,
"BDMCE": FIAT.BrezziDouglasMariniCubeEdge,
"BDMCF": FIAT.BrezziDouglasMariniCubeFace,
"S": FIAT.Serendipity,
# These require special treatment below
"DQ": None,
"Q": None,
"RTCE": None,
"RTCF": None,
"NCE": None,
"NCF": None,
"DPC": FIAT.DPC,
"S": FIAT.Serendipity
"NCF": None
}
"""A :class:`.dict` mapping UFL element family names to their
FIAT-equivalent constructors. If the value is ``None``, the UFL
Expand Down Expand Up @@ -140,7 +142,6 @@ def convert_finiteelement(element, vector_is_mixed):
lmbda = FIAT.GaussLegendre
else:
raise ValueError("Variant %r not supported on %s" % (kind, element.cell()))

return lmbda(cell, element.degree())


Expand Down
9 changes: 5 additions & 4 deletions tsfc/finatinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,18 @@
"Nedelec 2nd kind H(curl)": finat.NedelecSecondKind,
"Raviart-Thomas": finat.RaviartThomas,
"Regge": finat.Regge,
"DPC": finat.DPC,
"BDMCE": finat.BrezziDouglasMariniCubeEdge,
"BDMCF": finat.BrezziDouglasMariniCubeFace,
"S": finat.Serendipity,
# These require special treatment below
"DQ": None,
"Q": None,
"RTCE": None,
"RTCF": None,
"NCE": None,
"NCF": None,
"Real": finat.DiscontinuousLagrange,
"DPC": finat.DPC,
"S": finat.Serendipity
"Real": finat.DiscontinuousLagrange
}
"""A :class:`.dict` mapping UFL element family names to their
FInAT-equivalent constructors. If the value is ``None``, the UFL
Expand Down Expand Up @@ -153,7 +155,6 @@ def convert_finiteelement(element, **kwargs):
return finat.RuntimeTabulated(cell, degree, variant=kind, shift_axes=shift_axes, restriction=restriction, continuous=False), deps
else:
raise ValueError("Variant %r not supported on %s" % (kind, element.cell()))

return lmbda(cell, element.degree()), set()


Expand Down