From 7f95abdb2b2c34ccae0d7ce93157c5c507860ef0 Mon Sep 17 00:00:00 2001 From: Lawrence Mitchell Date: Fri, 14 Aug 2020 19:12:13 +0100 Subject: [PATCH] N1curl: Correctly advertise shape of interior moments Previously we advertised the interior integral moments as eating functions with shape (). This is incorrect, and breaks creation of RestrictedElements with only the interior dofs, since the dual space construction fails [it expects the dual to eat functions of shape (space_dimension, )]. --- FIAT/nedelec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FIAT/nedelec.py b/FIAT/nedelec.py index 32a794d21..b35c81f27 100644 --- a/FIAT/nedelec.py +++ b/FIAT/nedelec.py @@ -201,7 +201,7 @@ def __init__(self, ref_el, degree, variant, quad_deg): for d in range(sd): for i in range(Pkm1_at_qpts.shape[0]): phi_cur = Pkm1_at_qpts[i, :] - l_cur = functional.IntegralMoment(ref_el, Q, phi_cur, (d,)) + l_cur = functional.IntegralMoment(ref_el, Q, phi_cur, (d,), (sd,)) nodes.append(l_cur) entity_ids = {} @@ -317,7 +317,7 @@ def __init__(self, ref_el, degree, variant, quad_deg): for d in range(sd): for i in range(Pkm2_at_qpts.shape[0]): phi_cur = Pkm2_at_qpts[i, :] - f = functional.IntegralMoment(ref_el, Q, phi_cur, (d,)) + f = functional.IntegralMoment(ref_el, Q, phi_cur, (d,), (sd,)) nodes.append(f) entity_ids = {}