From cafbc15348d6945ebc96f101357f8cac3c4c0aef Mon Sep 17 00:00:00 2001 From: Pablo Brubeck Date: Sat, 2 Dec 2023 16:59:41 +0000 Subject: [PATCH 1/2] CG/DG integral variants on simplices --- tsfc/finatinterface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsfc/finatinterface.py b/tsfc/finatinterface.py index 6442e4b9..cdbe784b 100644 --- a/tsfc/finatinterface.py +++ b/tsfc/finatinterface.py @@ -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 @@ -174,7 +174,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 From c80d338347c696332d81b86e7c0d2d0ff917d528 Mon Sep 17 00:00:00 2001 From: Pablo Brubeck Date: Sun, 31 Dec 2023 13:37:18 -0600 Subject: [PATCH 2/2] Support IntegratedLegendre variants --- tsfc/finatinterface.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tsfc/finatinterface.py b/tsfc/finatinterface.py index cdbe784b..b0c813ed 100644 --- a/tsfc/finatinterface.py +++ b/tsfc/finatinterface.py @@ -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"]