Skip to content

Commit 90c20c5

Browse files
authored
Merge pull request #308 from firedrakeproject/pbrubeck/cg-dg-integral
Integral variants for CG/DG on simplices
2 parents 799191d + c80d338 commit 90c20c5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tsfc/finatinterface.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def convert_finiteelement(element, **kwargs):
148148
lmbda = finat.Lagrange
149149
elif kind == 'spectral':
150150
lmbda = finat.GaussLobattoLegendre
151-
elif kind == 'hierarchical' and is_interval:
151+
elif kind == 'integral':
152152
lmbda = finat.IntegratedLegendre
153153
elif kind in ['fdm', 'fdm_ipdg'] and is_interval:
154154
lmbda = finat.FDMLagrange
@@ -158,6 +158,8 @@ def convert_finiteelement(element, **kwargs):
158158
lmbda = finat.FDMBrokenH1
159159
elif kind == 'fdm_hermite' and is_interval:
160160
lmbda = finat.FDMHermite
161+
elif kind in ['demkowicz', 'fdm']:
162+
lmbda = partial(finat.IntegratedLegendre, variant=kind)
161163
elif kind in ['mgd', 'feec', 'qb', 'mse']:
162164
degree = element.degree()
163165
shift_axes = kwargs["shift_axes"]
@@ -174,7 +176,7 @@ def convert_finiteelement(element, **kwargs):
174176
lmbda = finat.DiscontinuousLagrange
175177
elif kind == 'spectral':
176178
lmbda = finat.GaussLegendre
177-
elif kind == 'hierarchical' and is_interval:
179+
elif kind == 'integral':
178180
lmbda = finat.Legendre
179181
elif kind in ['fdm', 'fdm_quadrature'] and is_interval:
180182
lmbda = finat.FDMDiscontinuousLagrange

0 commit comments

Comments
 (0)