From 7602634f1e192e70b2eec185eeec9dedfce53e02 Mon Sep 17 00:00:00 2001 From: Miklos Homolya Date: Thu, 12 Jan 2017 15:34:38 +0000 Subject: [PATCH] form degree for GL and GLL elements --- FIAT/gauss_legendre.py | 3 ++- FIAT/gauss_lobatto_legendre.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/FIAT/gauss_legendre.py b/FIAT/gauss_legendre.py index d407ba750..ae0272a6f 100644 --- a/FIAT/gauss_legendre.py +++ b/FIAT/gauss_legendre.py @@ -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) diff --git a/FIAT/gauss_lobatto_legendre.py b/FIAT/gauss_lobatto_legendre.py index 488d1c3bf..ecbe0157f 100644 --- a/FIAT/gauss_lobatto_legendre.py +++ b/FIAT/gauss_lobatto_legendre.py @@ -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)