Skip to content

Commit

Permalink
N1curl: Correctly advertise shape of interior moments
Browse files Browse the repository at this point in the history
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, )].
  • Loading branch information
wence- committed Aug 14, 2020
1 parent e16d9f3 commit 7f95abd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FIAT/nedelec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down Expand Up @@ -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 = {}
Expand Down

0 comments on commit 7f95abd

Please sign in to comment.