Skip to content

Commit

Permalink
Use ONPolynomialSet for equispaced Lagrange
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrubeck committed Nov 10, 2023
1 parent 687c07e commit a804028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FIAT/lagrange.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Lagrange(finite_element.CiarletElement):

def __init__(self, ref_el, degree, variant="equispaced"):
dual = LagrangeDualSet(ref_el, degree, variant=variant)
if ref_el.shape == LINE:
if ref_el.shape == LINE and variant != "equispaced":
# In 1D we can use the primal basis as the expansion set,
# avoiding any round-off coming from a basis transformation
points = []
Expand Down

0 comments on commit a804028

Please sign in to comment.