Skip to content

Commit

Permalink
CR: allow variants
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrubeck committed Jan 13, 2025
1 parent 14a66ab commit 11f90c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion FIAT/crouzeix_raviart.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def __init__(self, ref_el, degree, variant, interpolant_deg):
pts = make_lattice(verts, degree-1, variant="gl")
else:
pts = ref_el.make_points(dim, i, degree, variant="gll")

nodes.extend(functional.PointEvaluation(ref_el, x) for x in pts)
entity_ids[dim][i].extend(range(cur, len(nodes)))

Expand Down
4 changes: 2 additions & 2 deletions finat/fiat_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,8 @@ def __init__(self, cell, degree):


class CrouzeixRaviart(ScalarFiatElement):
def __init__(self, cell, degree):
super().__init__(FIAT.CrouzeixRaviart(cell, degree))
def __init__(self, cell, degree, variant=None):
super().__init__(FIAT.CrouzeixRaviart(cell, degree, variant=variant))


class Lagrange(ScalarFiatElement):
Expand Down

0 comments on commit 11f90c2

Please sign in to comment.