Skip to content

Commit

Permalink
Fix default variant
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrubeck committed Oct 24, 2024
1 parent 6914a63 commit f1a5629
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion FIAT/hellan_herrmann_johnson.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ class HellanHerrmannJohnson(finite_element.CiarletElement):
HHJ(r) is the space of symmetric-matrix-valued polynomials of degree r
or less with normal-normal continuity.
"""
def __init__(self, ref_el, degree, variant="integral"):
def __init__(self, ref_el, degree, variant=None):
assert degree >= 0, "Hellan-Herrmann-Johnson starts at degree 0!"
if variant is None:
variant = "integral"
poly_set = polynomial_set.ONSymTensorPolynomialSet(ref_el, degree)
dual = HellanHerrmannJohnsonDual(ref_el, degree, variant)
sd = ref_el.get_spatial_dimension()
Expand Down
4 changes: 3 additions & 1 deletion FIAT/regge.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ class Regge(finite_element.CiarletElement):
REG(r) is the space of symmetric-matrix-valued polynomials of degree r
or less with tangential-tangential continuity.
"""
def __init__(self, ref_el, degree, variant="integral"):
def __init__(self, ref_el, degree, variant=None):
assert degree >= 0, "Regge start at degree 0!"
if variant is None:
variant = "integral"
poly_set = polynomial_set.ONSymTensorPolynomialSet(ref_el, degree)
dual = ReggeDual(ref_el, degree, variant)
formdegree = (1, 1)
Expand Down

0 comments on commit f1a5629

Please sign in to comment.