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

Integral variants for CG/DG on simplices #308

Merged
merged 2 commits into from
Feb 7, 2024
Merged
Changes from all 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
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
Loading