Skip to content

Commit f3dd033

Browse files
committed
Quadrature elements constructed from non-Lagrange elements
1 parent 7db5046 commit f3dd033

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

finat/quadrature.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ def make_quadrature(ref_el, degree, scheme="default"):
2626
:arg degree: The degree of polynomial that the rule should
2727
integrate exactly.
2828
"""
29+
30+
if hasattr(scheme, "dual_basis"):
31+
Q, point_set = scheme.dual_basis
32+
weights = numpy.ones((len(point_set.points),))
33+
return QuadratureRule(point_set, weights, ref_el=ref_el)
34+
2935
if ref_el.get_shape() == TENSORPRODUCT:
3036
try:
3137
degree = tuple(degree)

0 commit comments

Comments
 (0)