diff --git a/FIAT/gauss_legendre.py b/FIAT/gauss_legendre.py index 324dc39ab..6b3b4f0fd 100644 --- a/FIAT/gauss_legendre.py +++ b/FIAT/gauss_legendre.py @@ -49,11 +49,12 @@ def __init__(self, ref_el, degree): raise ValueError("Gauss-Legendre elements are only defined on simplices.") dual = GaussLegendreDualSet(ref_el, degree) if ref_el.shape == LINE: - pts = [] - for phi in dual.nodes: - pt, = phi.pt_dict.keys() - pts.append(pt) - poly_set = LagrangePolynomialSet(ref_el, pts) + points = [] + for node in dual.nodes: + # Assert singleton point for each node. + pt, = node.get_point_dict().keys() + points.append(pt) + poly_set = LagrangePolynomialSet(ref_el, points) else: poly_set = polynomial_set.ONPolynomialSet(ref_el, degree) formdegree = ref_el.get_spatial_dimension() # n-form diff --git a/FIAT/gauss_lobatto_legendre.py b/FIAT/gauss_lobatto_legendre.py index 9f9c6be36..31856da87 100644 --- a/FIAT/gauss_lobatto_legendre.py +++ b/FIAT/gauss_lobatto_legendre.py @@ -57,7 +57,7 @@ def __init__(self, ref_el, degree): points = [] for node in dual.nodes: # Assert singleton point for each node. - pt, = node.pt_dict.keys() + pt, = node.get_point_dict().keys() points.append(pt) poly_set = LagrangePolynomialSet(ref_el, points) else: