Skip to content

Commit

Permalink
Merged in miklos1/spectral-formdegree (pull request #33)
Browse files Browse the repository at this point in the history
Add missing form degree for GL and GLL elements
  • Loading branch information
miklos1 committed Jan 12, 2017
2 parents 5ab90bb + 7602634 commit 184601a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion FIAT/gauss_legendre.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ def __init__(self, ref_el, degree):
raise ValueError("Gauss-Legendre elements are only defined in one dimension.")
poly_set = polynomial_set.ONPolynomialSet(ref_el, degree)
dual = GaussLegendreDualSet(ref_el, degree)
super(GaussLegendre, self).__init__(poly_set, dual, degree)
formdegree = ref_el.get_spatial_dimension() # n-form
super(GaussLegendre, self).__init__(poly_set, dual, degree, formdegree)
3 changes: 2 additions & 1 deletion FIAT/gauss_lobatto_legendre.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ def __init__(self, ref_el, degree):
raise ValueError("Gauss-Lobatto-Legendre elements are only defined in one dimension.")
poly_set = polynomial_set.ONPolynomialSet(ref_el, degree)
dual = GaussLobattoLegendreDualSet(ref_el, degree)
super(GaussLobattoLegendre, self).__init__(poly_set, dual, degree)
formdegree = 0 # 0-form
super(GaussLobattoLegendre, self).__init__(poly_set, dual, degree, formdegree)

0 comments on commit 184601a

Please sign in to comment.