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

Commit

Permalink
Merge pull request #308 from firedrakeproject/pbrubeck/cg-dg-integral
Browse files Browse the repository at this point in the history
Integral variants for CG/DG on simplices
  • Loading branch information
dham authored Feb 7, 2024
2 parents 799191d + c80d338 commit 90c20c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tsfc/finatinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def convert_finiteelement(element, **kwargs):
lmbda = finat.Lagrange
elif kind == 'spectral':
lmbda = finat.GaussLobattoLegendre
elif kind == 'hierarchical' and is_interval:
elif kind == 'integral':
lmbda = finat.IntegratedLegendre
elif kind in ['fdm', 'fdm_ipdg'] and is_interval:
lmbda = finat.FDMLagrange
Expand All @@ -158,6 +158,8 @@ def convert_finiteelement(element, **kwargs):
lmbda = finat.FDMBrokenH1
elif kind == 'fdm_hermite' and is_interval:
lmbda = finat.FDMHermite
elif kind in ['demkowicz', 'fdm']:
lmbda = partial(finat.IntegratedLegendre, variant=kind)
elif kind in ['mgd', 'feec', 'qb', 'mse']:
degree = element.degree()
shift_axes = kwargs["shift_axes"]
Expand All @@ -174,7 +176,7 @@ def convert_finiteelement(element, **kwargs):
lmbda = finat.DiscontinuousLagrange
elif kind == 'spectral':
lmbda = finat.GaussLegendre
elif kind == 'hierarchical' and is_interval:
elif kind == 'integral':
lmbda = finat.Legendre
elif kind in ['fdm', 'fdm_quadrature'] and is_interval:
lmbda = finat.FDMDiscontinuousLagrange
Expand Down

0 comments on commit 90c20c5

Please sign in to comment.